暴风影音5 BETA2 的AU3问题
#RequireAdmin#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=icon\Storm.ico
#AutoIt3Wrapper_outfile=baofeng5setup.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
$title = "安装 暴风影音5 Beta2版"
Run("Baofeng5.exe")
If WinWait($title, "您的电脑已经安装了暴风影音", 3) Then
WinActivate($title, "您的电脑已经安装了暴风影音")
ControlClick($title, "是(&Y)", "Button1", "left", 1)
EndIf
;许可协议
WinWait($title, "许可协议")
WinActivate($title, "许可协议")
ControlClick($title, "接受(&I) >", "Button2", "left", 1)
;下一步(&N) >
WinWait($title, "下一步(&N) >")
WinActivate($title, "下一步(&N) >")
ControlClick($title, "下一步(&N) >", "Button2", "left", 1)
;程序安装目录
WinWait($title, "程序安装目录")
WinActivate($title, "程序安装目录")
ControlClick($title, "安装百度工具栏", "Button5", "left", 1)
sleep(500)
ControlClick($title, "下一步(&N) >", "Button2", "left", 1)
;安装
WinWait($title, "安装(&I)")
WinActivate($title, "安装(&I)")
ControlClick($title, "安装(&I)", "Button2", "left", 1)
;已完成
While WinExists($title, "完成(&F)")
sleep(1000)
WinWait($title, "完成(&F)")
WinActivate($title, "完成(&F)")
ControlClick($title, "完成(&F)","Button2","left",1)
WEnd
Sleep(3000)
If ProcessExists("StormPlayer.exe") Then
ProcessClose("StormPlayer.exe")
ProcessClose("BaofengPlatform.exe")
EndIf
Exit代码如上 ,执行到【完成】那一步卡住,循环语句执行不下去
不知道问题出在哪
发现偶尔还是能执行下去的
仅仅是偶尔
测试环境:XP、WIN7 32、WIN764 联网,不联网都试过 路过,也想学习一下
页:
[1]