|
$Teet="迅雷7安装程序"
$Teet1="软件许可协议"
$Teet2="迅雷7"
$Teet3=""
ShellExecute("Thunder.exe","",@ScriptDir,"open")
WinWait($Teet,$Teet1)
If Not WinActivate($Teet,$Teet1) Then WinActivate($Teet,$Teet1)
WinWaitActive($Teet,$Teet1)
ControlClick($Teet,$Teet1,"Button1")
WinWait($Teet,$Teet3)
If Not WinActivate($Teet,$Teet3) Then WinActivate($Teet,$Teet3)
WinWaitActive($Teet,$Teet3)
ControlSetText($Teet,$Teet3,"Edit1","d:\Program Files\Thunder")
ControlClick($Teet,$Teet3,"Button7")
WinWait($Teet2)
If Not WinActivate($Teet2) Then WinActivate($Teet2)
WinWaitActive($Teet2)
Send("{ENTER}")
ControlClick($Teet,$Teet3,"Button1")
Send("{ENTER}")
WinWait($Teet)
While 1
If ControlGetHandle($Teet,$Teet3,"[CLASS:Button; INSTANCE:4]") Then ExitLoop
Sleep(500)
WEnd
ControlClick($Teet,$Teet3,"[CLASS:Button; INSTANCE:4]")
ControlClick($Teet,$Teet3,"[CLASS:Button; INSTANCE:5]")
ControlClick($Teet,$Teet3,"[CLASS:Button; INSTANCE:1]")
ProcessWaitClose("Thunder.exe")
FileDelete(@DesktopCommonDir & "\迅雷看看-免费高清电影.lnk")
FileDelete(@DesktopCommonDir & "\迅雷高清影片免费下载.lnk")
Exit
如果有什么问题请大家及时告诉我 |
|