找回密码
 加入
搜索
查看: 3981|回复: 3

[原创] 迅雷7源码

[复制链接]
发表于 2010-12-19 10:31:44 | 显示全部楼层 |阅读模式
Opt("MouseCoordMode", 0)
Opt("WinTitleMatchMode", 2)
Dim $Title1 = "迅雷7安装程序"
Dim $Title2="迅雷7"
Dim $Text1= "软件许可协议"
Dim $Text2=""
Dim $Text3="C:\Program Files\Thunder Network\Thunder"

If Not FileExists(@ScriptDir&"\迅雷7.exe") Then
TrayTip("错误!","安装文件未找到!"&@CRLF&"5秒后自动退出", 5, 1)
Sleep(3000)
Exit
EndIf
Run(@ScriptDir&"\迅雷7.exe")
TrayTip("提示", "最好关闭安全软件,以免影响自动安装效果"&@CRLF&"自动安装期间,请勿动键盘鼠标", 5, 1)
Sleep(3000)

WinWaitActive($Title1, $Text1)
ControlClick($Title1, $Text1, "Button1")

WinWaitActive($Title1, $Text3)
ControlClick($Title1, $Text3, "Button7")
Sleep(500)
ControlClick($Title2, $Text2, "Button2")
WinWaitActive($Title1, $Text3)
ControlClick($Title1, $Text2, "Button1")
Sleep(500)
ControlClick($Title2, $Text2, "Button2")

WinWaitActive($Title1, $Text2)
While 1
        If ControlGetHandle($Title1,'','Button4') Then ExitLoop
        Sleep(200)
WEnd
ControlClick($Title1, $Text2, "Button4")
ControlClick($Title1, $Text2, "Button5")
ControlClick($Title1, $Text2, "Button1")

TrayTip("提示", "已经安装完成", 3, 1)
Sleep(3000)
Exit
借用学习了论坛某位高手的代码....
本人博客有打包文件下载地址:
http://hi.baidu.com/183712314/bl ... b0720fa8d31185.html
发表于 2010-12-26 16:33:07 | 显示全部楼层
还行啊~试试
发表于 2010-12-26 17:17:43 | 显示全部楼层
我还以为是迅雷7的源码呢~~~吓倒
发表于 2010-12-26 18:40:39 | 显示全部楼层
我还以为是迅雷7的源码呢~~~吓倒
chenronting 发表于 2010-12-26 17:17



    是啊。。还以为迅雷给反编译了啊。。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-22 17:15 , Processed in 0.087248 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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