|
分享迅雷7安装全过程》老鸟飞过·1Run(@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}") |
|