找回密码
 加入
搜索
查看: 3094|回复: 1

[原创] 暴风影音5 BETA2 的AU3问题

[复制链接]
发表于 2011-9-28 09:45:45 | 显示全部楼层 |阅读模式
#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 联网,不联网都试过
发表于 2011-9-30 09:00:58 | 显示全部楼层
路过,也想学习一下
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-21 19:45 , Processed in 0.069272 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表