|
今天研究两个小时AUTOIT V3,才做出了这个小脚本,由于是初次接触,做的比较慢,经过几个纠正才成功,跟大家分享一下。
dim $t="QQ游戏"
run ("QQGame2011.exe")
WinWaitActive($t)
ControlClick($t,"","Button2")
WinWaitActive($t)
ControlClick($t,"","Button2")
WinWaitActive($t)
ControlSetText($t,"选择安装位置","Edit1","C:\QQGAME\")
ControlClick($t,"","Button2")
WinWaitActive($t)
ControlClick($t,"","Button4")
WinWaitActive($t,"已完成")
ControlClick($t,"","Button2")
WinWaitActive($t)
ControlClick($t,"","Button4")
ControlClick($t,"","Button5")
ControlClick($t,"","Button7")
ControlClick($t,"","Button2")
WinWaitActive($t)
ControlClick($t,"","Button4")
ControlClick($t,"","Button2")
Exit |
|