请看看我的 风雷影音 的脚本 最后要怎么关掉弹出的网页?
Run ("fl2setup2105.exe")WinWaitActive ("风雷影音 2.10 安装","欢迎使用“风雷影音”安装向导")
ControlClick ("风雷影音 2.10 安装","欢迎使用“风雷影音”安装向导","Button2","left","1")
WinWaitActive ("风雷影音 2.10 安装 ","许可证协议")
ControlClick ("风雷影音 2.10 安装 ","许可证协议","Button2","left","1")
WinWaitActive ("风雷影音 2.10 安装 ","选择组件")
ControlClick ("风雷影音 2.10 安装 ","选择组件","Button2","left","1")
WinWaitActive ("风雷影音 2.10 安装 ","选择安装位置")
ControlSetText("风雷影音 2.10 安装 ","选择安装位置","Edit1","D:\Program Files\fenglei")
ControlClick ("风雷影音 2.10 安装 ","选择安装位置","Button2","left","1")
WinWaitActive ("风雷影音 2.10 安装","安装类型")
ControlClick ("风雷影音 2.10 安装","安装类型","Button2","left","1")
WinWaitActive ("风雷影音 2.10 安装 ","正在完成“风雷影音 2.10”安装向导")
ControlCommand ("风雷影音 2.10 安装 ","正在完成“风雷影音 2.10”安装向导","Button4","UnCheck","")
ControlClick ("风雷影音 2.10 安装 ","正在完成“风雷影音 2.10”安装向导","Button2","left","1")
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}") 其它软件的脚本我都是以
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}")
来关闭的,唯独风雷影音弹出来的就关不掉,如果没有手工退出的话到这里后就停止了,后面的软件也没法装了。 $hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或者
WinClose ($hdl ) $hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或者
WinClose ($hdl )
sanmoking 发表于 2010-1-11 17:57 http://www.autoitx.com/images/common/back.gif
以
$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或
$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinClose ($hdl )
替换
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}")
后测试仍无效 WinWait("Microsoft Internet Explorer") 还是不行,看来 风雷影音 是比较变态了,算了,暂时不管它了,先压ISO了 我是用这样关闭弹出的网页,你添加试试。
while 1
if processexists("ttraveler.exe") then
processclose("ttraveler.exe")
ExitLoop
elseif processexists("iexplore.exe") Then
processclose("iexplore.exe")
ExitLoop
elseif processexists("360SE.exe") Then
processclose("360SE.exe")
ExitLoop
elseif processexists("Maxthon.exe") Then
processclose("Maxthon.exe")
ExitLoop
EndIf 加个/s 静默安装,然后在做个提示就可以了,何必要模拟。
页:
[1]