找回密码
 加入
搜索
查看: 2459|回复: 7

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

  [复制链接]
发表于 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}")
 楼主| 发表于 2010-1-11 17:54:09 | 显示全部楼层
其它软件的脚本我都是以
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}")
来关闭的,唯独风雷影音弹出来的就关不掉,如果没有手工退出的话到这里后就停止了,后面的软件也没法装了。
发表于 2010-1-11 17:57:39 | 显示全部楼层
$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或者
WinClose ($hdl )
 楼主| 发表于 2010-1-11 18:05:06 | 显示全部楼层
$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )
或者
WinClose ($hdl )
sanmoking 发表于 2010-1-11 17:57




$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinKill ($hdl )

$hdl = WinWaitActive ("Microsoft Internet Explorer")
WinClose ($hdl )
替换
WinWaitActive ("Microsoft Internet Explorer")
Send ("!{F4}")
后测试仍无效
发表于 2010-1-11 18:09:16 | 显示全部楼层
WinWait("Microsoft Internet Explorer")
 楼主| 发表于 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
发表于 2010-1-15 13:20:24 | 显示全部楼层
加个/s 静默安装,然后在做个提示就可以了,何必要模拟。
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-22 14:26 , Processed in 0.083487 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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