djfei007 发表于 2011-4-26 00:54:25

QQGame2011自动安装脚本,分享一下

今天研究两个小时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

wsfda 发表于 2011-4-26 08:53:57

顶楼主,支持新手学习
页: [1]
查看完整版本: QQGame2011自动安装脚本,分享一下