q0821
|
分享:
▲
▼
我是用autoit用的
下面是我的code
========================================================= ; ---------------------------------------------------------------------------- ; Set up our defaults/Variables ; ---------------------------------------------------------------------------- AutoItSetOption("WinTitleMatchMode", 1) $SF= "Setup.exe" ;安装档案 ; ---------------------------------------------------------------------------- ; Script Start ; ----------------------------------------------------------------------------
Run($SF)
WinWaitActive("Avira AntiVir Personal - Free Antivirus") sleep(500) ControlClick("Avira AntiVir Personal - Free Antivirus","","Button1")
DO
WinSetOnTop("Avira AntiVir Personal – Free Antivirus","",1)
$SPPB=ControlGetText("Avira AntiVir Personal – Free Antivirus","","Button2")
Until $SPPB = "下一步(&N) >"
WinActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("!n")
WinActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("!n")
WinWaitActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("!a") sleep(500) Send("!n")
WinWaitActive("Avira AntiVir Personal – Free Antivirus") sleep(500) ControlClick("Avira AntiVir Personal – Free Antivirus","","Button1") sleep(500) ControlClick("Avira AntiVir Personal – Free Antivirus","","Button4")
WinActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("!n")
WinActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("!n")
DO
WinSetOnTop("Avira AntiVir Personal – Free Antivirus","",1)
$SPPB=ControlGetText("Avira AntiVir Personal – Free Antivirus","","Button12")
Until $SPPB = "完成"
WinWaitActive("Avira AntiVir Personal – Free Antivirus") sleep(500) Send("{space}") sleep(500) ControlClick("Avira AntiVir Personal – Free Antivirus","","Button12")
WinWaitActive("Setup of Avira AntiVir Personal – Free Antivirus") sleep(500) ControlClick("Setup of Avira AntiVir Personal – Free Antivirus","","Button2")
DO
WinSetOnTop("Luke Filewalker","",1)
$SPPB=ControlGetText("Luke Filewalker","","Button2")
Until $SPPB = "&End"
WinWaitActive("Luke Filewalker") sleep(500) ControlClick("Luke Filewalker","","Button2")
=========================================================
|