|
发表于 2011-3-4 17:14:05
|
显示全部楼层
谢谢了嗯。尤其是最后那个判断,我说我做的怎么也到不了最后。
这里的winwaitclose 是什么??错了。。
我怎么也获取不了窗口的文本。只好用 WinWait($title,"") ,你那个 winwait($title,"thunder") 能获取到??
附上我做的:
#RequireAdmin
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=Thunder.exe|-1
#AutoIt3Wrapper_outfile=thundersetup.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
$title="迅雷7安装程序"
Run("thunder.exe")
;安装协议
WinWait($title,"软件许可协议")
ControlClick($title,"软件许可协议","Button1","left",1)
;安装目录
Sleep(3000)
WinWait($title,"")
ControlSetText($title,"","Edit1","C:\Program Files\Thunder Network\Thunder")
ControlClick($title,"","Button7","left",1)
WinWait("迅雷7","")
ControlClick("迅雷7","","Button2","left",1)
WinWait($title,"")
ControlClick($title,"","Button1","left",1)
WinWait("迅雷7","")
ControlClick("迅雷7","","Button2","left",1)
;完成
WinWait($title,"")
While 1
If ControlGetHandle($title,"","Button4") Then exitloop
Sleep(1000)
WEnd
ControlClick($title,"","Button4","left",1)
ControlClick($title,"","Button5","left",1)
ControlClick($title,"","Button1","left",1)
Exit |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?加入
×
|