$variable0="迅雷5: 用户使用协议"
$variable1="欢迎使用 迅雷5 安装向导"
$variable2="迅雷5: 安装选项"
$variable3="选择附加任务"
$variable4="安装:迅雷5"
$variable5="百度工具栏 轻松搜索,拦截广告!"
$variable6="迅雷5: 安装完成"
$variable7="迅雷5安装程序已完成安装"
$variable8=""
$variable9=""
$directory="D:\Program Files\Thunder Network\Thunder"
Run("soft\Thunder.exe")
TrayTip("正在安装","迅雷软件,请稍等...",5,1)
WinWaitActive($variable0,$variable1)
Send("!y")
WinWaitActive($variable2,$variable3)
ControlSetText($variable2,$variable3,"Edit1",$directory)
sleep(500)
Send("{TAB}{TAB}{TAB}{TAB}{TAB}{DOWN}{DOWN}{SPACE}{DOWN}{DOWN}{SPACE}{DOWN}{SPACE}{DOWN}{SPACE}")
Send("!n")
WinWaitActive($variable4,$variable5)
ControlClick($variable4,$variable5,"Button4")
ControlClick($variable4,$variable5,"Button2")
WinWaitActive($variable6,$variable7)
ControlClick($variable6,$variable7,"Button5")
ControlClick($variable6,$variable7,"Button6")
ControlClick($variable6,$variable7,"Button2")
sleep(2000)
if winactive("文件夹存在") Then
send("!y")
EndIf
If ProcessExists("iexplore.exe") Then
ProcessClose("iexplore.exe")
EndIf
|