kayuk 发表于 2010-1-11 17:52:48

请看看我的 风雷影音 的脚本 最后要怎么关掉弹出的网页?

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}")

kayuk 发表于 2010-1-11 17:54:09

其它软件的脚本我都是以
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}")
来关闭的,唯独风雷影音弹出来的就关不掉,如果没有手工退出的话到这里后就停止了,后面的软件也没法装了。

sanmoking 发表于 2010-1-11 17:57:39

$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或者
WinClose ($hdl )

kayuk 发表于 2010-1-11 18:05:06

$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}")
后测试仍无效

sanmoking 发表于 2010-1-11 18:09:16

WinWait("Microsoft Internet Explorer")

kayuk 发表于 2010-1-11 18:47:38

还是不行,看来 风雷影音 是比较变态了,算了,暂时不管它了,先压ISO了

追梦虎 发表于 2010-1-11 19:11:15

我是用这样关闭弹出的网页,你添加试试。
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

angelink 发表于 2010-1-15 13:20:24

加个/s 静默安装,然后在做个提示就可以了,何必要模拟。
页: [1]
查看完整版本: 请看看我的 风雷影音 的脚本 最后要怎么关掉弹出的网页?