yamhpsxn 发表于 2010-1-12 18:21:30

迅雷5自动安装脚本

:face (22):$T="迅雷5"
Run("Thunder.exe")
WinWaitActive($T,"欢迎使用")
Send("!y")

WinWaitActive($T,"选择附加任务")
send("!n")
WinWaitActive("安装","安装百度")
ControlClick("安装","安装百度","Button4")
ControlClick("安装","安装百度","Button2")
WinWaitActive("迅雷5")
send("!d")
If winwait("找不到服务器 - Microsoft Internet Explorer") then
winclose("找不到服务器 - Microsoft Internet Explorer")
ElseIf winwait("http://help.xunlei") then
WinClose("http://help.xunlei")
EndIf

FileDelete(@DesktopDir&"\迅雷看看-免费高清影视.lnk")

FileDelete(@DesktopDir&"\迅雷看看播放器.lnk")

FileDelete(@DesktopDir&"\迅雷游戏.lnk")

FileDelete (@AppDataDir&"\Microsoft\Internet Explorer\Quick Launch\迅雷5.lnk")
WinWaitActive($T,"迅雷5安装程序已完成安装")
ControlClick("安装","安装百度","Button5")
ControlClick("安装","安装百度","Button6")
ControlClick("安装","安装百度","Button7")
ControlClick("安装","安装百度","Button2")
WinWaitActive($T,"")
send("!f")
exit
页: [1]
查看完整版本: 迅雷5自动安装脚本