找回密码
 加入
搜索
查看: 2667|回复: 9

[AU3基础] 如何直接下载360杀毒软件

  [复制链接]
发表于 2011-8-28 20:11:41 | 显示全部楼层 |阅读模式
请问各位朋友:
如何直接下载360杀毒软件,我下边的代码不起作用,请各位朋友帮助解决为盼。
ShellExecute(http://down.360.cn/360sd_se.exe)
发表于 2011-8-28 20:34:10 | 显示全部楼层
ShellExecute("http://down.360.cn/360sd_se.exe")
没办法上外网检测
 楼主| 发表于 2011-8-28 20:52:21 | 显示全部楼层
谢谢,调出来的,但“网页”也打开了,能不能不让网页出来。
 楼主| 发表于 2011-8-28 20:52:30 | 显示全部楼层
谢谢,调出来的,但“网页”也打开了,能不能不让网页出来。
 楼主| 发表于 2011-8-28 21:13:21 | 显示全部楼层
问题解决了,延迟。
发表于 2011-8-28 21:31:17 | 显示全部楼层
如果有其他网页跳出来可以这样,title自己定义
#include <WinAPI.au3>
Opt('MustDeclareVars', 1)
Dim $title=""
ShellExecute("http://down.360.cn/360sd_se.exe")
Sleep(2000)
_KILL($title)

Func _KILL($1)
        Local $aWindows, $i
        $aWindows = _WinAPI_EnumWindowsTop()
        For $i = 1 To $aWindows[0][0]
                                If WinGetTitle($aWindows[$i][0])=$1 Then                                
                DllCall("user32.dll", "bool", "ShowWindow", "hwnd", $aWindows[$i][0], "int", @SW_HIDE)
                EndIf
        Next
EndFunc
 楼主| 发表于 2011-8-29 19:25:42 | 显示全部楼层
朋友,这段代码把任务栏给整没了。
发表于 2011-8-31 10:44:33 | 显示全部楼层
本帖最后由 骗子 于 2011-8-31 10:45 编辑

下载到临时目录中
Local $hDownload = InetGet("http://down.360.cn/360sd_se.exe", @TempDir & "\"  & "360sd_se.exe", 1, 1)
        Do
                Sleep(250)
        Until InetGetInfo($hDownload, 2); 检查下载是否完成. 
 楼主| 发表于 2011-9-18 22:33:53 | 显示全部楼层
还是不对,临时目录中有一:“360sd00000763dd73a38b”的文件
别外,下载完就有个提示,要不知道什么时间下载完。
发表于 2011-9-20 13:07:25 | 显示全部楼层
这个问题有点难搞!是要加到界面里去吧!就像一个链接一点就下载!我是菜鸟只能帮你顶贴,等人帮你彻底解决!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-9-21 00:29 , Processed in 0.096768 second(s), 23 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表