Opt("MouseCoordMode", 0)
Opt("WinTitleMatchMode", 3)
$t="360极速浏览器 安装"
Run ("360极速浏览器.exe")
TrayTip("提示", "最好关闭安全软件,以免影响自动安装效果"&@CRLF&"自动安装期间,请勿动键盘鼠标", 3, 1)
Do
If WinExists($t,"自定义") Then
WinActivate($t,"自定义")
Sleep(100)
ControlClick($t,"自定义","Button2")
EndIf
Until WinExists($t,"自定义安装")
Do
If WinExists($t,"自定义安装") Then
WinActivate($t,"自定义安装")
ControlSetText($t,"自定义安装","Edit1","d:\Program Files\360\360kuai")
Sleep(100)
ControlCommand($t,"自定义安装","Button4","UnCheck")
ControlCommand($t,"自定义安装","Button5","UnCheck")
ControlClick($t,"自定义安装","Button1")
EndIf
Until Not WinExists($t,"自定义安装")
While 1
Select
Case WinExists($t,"加入用户体验改进计划")
Do
WinActivate($t,"加入用户体验改进计划")
Sleep(100)
ControlCommand($t,"", "加入用户体验改进计划","UnCheck")
ControlClick($t,"", "[CLASS:Chrome_WidgetWin_0; INSTANCE:0]","left",1,434, 331)
Until Not WinExists($t,"加入用户体验改进计划")
ExitLoop
Case ProcessExists("360chrome.exe")
Do
ProcessClose("360chrome.exe")
Sleep(100)
Until Not ProcessExists("360chrome.exe")
ExitLoop
EndSelect
WEnd
TrayTip("提示", "已经安装完成", 3, 1)
Sleep(3000)
Exit