找回密码
 加入
搜索
查看: 3773|回复: 5

[原创] 分享迅雷7安装全过程》老鸟飞过·1

  [复制链接]
发表于 2011-7-31 14:06:22 | 显示全部楼层 |阅读模式
分享迅雷7安装全过程》老鸟飞过·1
Run(@ScriptDir & "\Thunder7.2.1.3136.exe")
$a ="迅雷7安装程序"
$b ="软件许可协议"
WinWait($a,$b)
WinActivate($a,$b)
WinWaitActive($a,$b)
Send("{enter}")
;第二步安装,选择程序 !
WinWait($a,"C:\Program Files\Thunder Network\Thunder")
WinWaitActive($a,"C:\Program Files\Thunder Network\Thunder")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button5")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button6")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button7")
WinWaitActive("迅雷7","")
ControlClick("迅雷7","","Button2")
Send("{enter}")
WinWaitActive("迅雷7","")
ControlClick("迅雷7","","Button2")
Send("{enter}")
;正在等待安装完成的进度
WinWait($a,"")
WinActivate($a,"")
WinWaitActive($a,"")
ControlClick($a,"","Button4")
ControlClick($a,"","Button5")
ControlClick($a,"","Button8")
ControlClick($a,"","Button7")
Send("{enter}")
Run(@ScriptDir & "\Thunder7.2.1.3136.exe")
$a ="迅雷7安装程序"
$b ="软件许可协议"
WinWait($a,$b)
WinActivate($a,$b)
WinWaitActive($a,$b)
Send("{enter}")
;第二步安装,选择程序 !
WinWait($a,"C:\Program Files\Thunder Network\Thunder")
WinWaitActive($a,"C:\Program Files\Thunder Network\Thunder")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button5")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button6")
ControlClick($a,"C:\Program Files\Thunder Network\Thunder","Button7")
WinWaitActive("迅雷7","")
ControlClick("迅雷7","","Button2")
Send("{enter}")
WinWaitActive("迅雷7","")
ControlClick("迅雷7","","Button2")
Send("{enter}")
;正在等待安装完成的进度
WinWait($a,"")
WinActivate($a,"")
WinWaitActive($a,"")
ControlClick($a,"","Button4")
ControlClick($a,"","Button5")
ControlClick($a,"","Button8")
ControlClick($a,"","Button7")
Send("{enter}")
 楼主| 发表于 2011-7-31 15:32:18 | 显示全部楼层
为什么程序执行到最后一步,就没有选择了!~
发表于 2011-7-31 18:00:45 | 显示全部楼层
你360卫士和杀毒都能自动安装吗?
 楼主| 发表于 2011-8-1 19:08:11 | 显示全部楼层
可以!你把你的代码发来看一下!
发表于 2011-8-4 10:14:47 | 显示全部楼层
你的源码到最后真的没有选择了,楼主请检查检查
 楼主| 发表于 2011-8-11 17:19:49 | 显示全部楼层
ControlGetText
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-22 11:26 , Processed in 0.077994 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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