找回密码
 加入
搜索
查看: 4558|回复: 6

[系统综合] 自动安装软件中,关不了窗口,点不了确定。

[复制链接]
发表于 2014-1-17 13:37:10 | 显示全部楼层 |阅读模式
第一个:WinRAR_5.01_X64.exe,烈火美化版的,地址:http://hrtsea.com/?p=121,源码如下:
#NoTrayIcon
Opt("TrayAutoPause",0)
Run("WinRAR_5.01_X64.exe")
WinWaitActive("WinRAR 5.01 简体中文美化版 (x64)","目标文件夹")
Send("{Enter}")
WinWaitActive("WinRAR 简体中文版安装","WinRAR 关联文件")
Send("!C")
WinWaitActive("关联菜单项目","选择显示在资源管理器右键菜单中的项目")
ControlCommand("关联菜单项目","选择显示在资源管理器右键菜单中的项目","Button9","UnCheck")
ControlCommand("关联菜单项目","选择显示在资源管理器右键菜单中的项目","Button10","UnCheck")
Send("{Enter}")
WinWaitActive("WinRAR 简体中文版安装","WinRAR 关联文件")
Send("{Tab}")
Send("{Tab}")
Send("{Enter}")
WinWaitActive("WinRAR 简体中文版安装","WinRAR 已经成功地安装到文件夹")
Send("{Enter}")
WinWaitActive("","C:\ProgramData\Microsoft\Windows\Start Menu\Programs\WinRAR")
WinActive("","C:\ProgramData\Microsoft\Windows\Start Menu\Programs\WinRAR")
Send("!+{Space}+c")
Exit
求助问题:在正常系统下运行,是能关闭的,但在系统部署中调用,安装完毕后,最后关不了这如下窗口

-------------------------------------------------------------------------------------------------------------------------
第二个:FreeIme.exe,自动安装极点五笔,官网如右:http://www.freewb.org/#
#NoTrayIcon
Opt("TrayAutoPause",0)
Run("FreeIme.exe")
$title = "极点五笔 十周年纪念版 安装"
$text1 = "按 [PgDn] 阅读“授权协议”的其余部分。"
$text2 = "请选择极点要安装的文件夹"
$text3 = "请选择你习惯的输入法外观式样"
$text4 = "『五笔拼音模式』可以会五笔打五笔,不会五笔打拼音(如图)"
$text5 = "引号、书名号、……这类配对标点难输?试试极点的智能标点功能吧!"
WinWaitActive($title,$text1)
WinActive($title,$text1)
ControlCommand($title,$text1,"[CLASS:Button;INSTANCE:2]","check")
ControlClick($title,$text1,"[CLASS:Button;INSTANCE:2]")

WinWaitActive($title,$text2)
WinActive($title,$text2)
ControlCommand($title,$text2,"[CLASS:Button;INSTANCE:2]","check")
ControlClick($title,$text2,"[CLASS:Button;INSTANCE:2]")

WinWaitActive($title,$text3)
WinActive($title,$text3)
ControlCommand($title,$text3,"[CLASS:Button;INSTANCE:2]","check")
ControlClick($title,$text3,"[CLASS:Button;INSTANCE:2]")

WinWaitActive($title,$text4)
WinActive($title,$text4)
ControlCommand($title,$text4,"[CLASS:Button;INSTANCE:2]","check")
ControlClick($title,$text4,"[CLASS:Button;INSTANCE:2]")

WinWaitActive($title,$text5)
WinActive($title,$text5)
ControlCommand($title,$text5,"[CLASS:Button;INSTANCE:2]","check")
ControlClick($title,$text5,"[CLASS:Button;INSTANCE:2]")
Exit
求助问题:在最后安装完毕后,弹出如下框, 我不知道,在系统部署中,如何点确定关闭掉

窗口信息如下:


如上两个问题,烦请老师能小花点儿时间帮我解疑,感激不尽。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?加入

×
 楼主| 发表于 2014-1-17 13:39:39 | 显示全部楼层
或者,有高手,会将此两软件制作成Addon.wa就太好了~
发表于 2014-1-18 20:08:26 | 显示全部楼层
本帖最后由 擦肩而过 于 2014-1-18 20:12 编辑

两个软件都是有静默参数的!AU3写自动安装的可以这样,可以这样
RUN(@SCRIPTDIR & "\极品五笔输入法.exe")
SLEEP(200)
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "安装向导")
SLEEP(200)
SEND("!n")
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "许可协议")
SLEEP(0x000000FA)
CONTROLCLICK("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "许可协议", "[class:TNewRadioButton;INSTANCE:1]")
SEND("!n")
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "选择目标")
SLEEP(200)
SEND("!n")
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "准备安装")
SLEEP(200)
SEND("!i")
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "百度")
SLEEP(0x000000FA)
CONTROLCLICK("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "百度", "[class:TCheckBox;INSTANCE:1]")
SEND("!n")
WINWAITACTIVE("安装 - 极品五笔WinXP|Win7|8-(32|64bit)通用型", "安装就绪")
SLEEP(200)
SEND("{space}")
SLEEP(200)
SEND("!f")
DIRREMOVE(@PROGRAMSCOMMONDIR & "\极品五笔", 0x00000001)
SLEEP(200)
FILEDELETE(@PROGRAMFILESDIR & "\jpwb\Baidu_Tools.exe")
FILEDELETE(@APPDATADIR & "\Microsoft\IME\JPWB\*.*")
FILEDELETE(@DESKTOPDIR & "\qq11极品网址.*")
FILEDELETE(@STARTMENUDIR & "\qq11极品网址.*")
EXIT
发表于 2014-1-18 20:09:45 | 显示全部楼层
本帖最后由 擦肩而过 于 2014-1-18 20:12 编辑

抛砖引玉而已,不要见笑~!
RunWait(@ScriptDir & "\WinRAR.exe /S")
 楼主| 发表于 2014-1-21 11:58:06 | 显示全部楼层
再请问楼上,从哪里可以得知某个软件支持静默参数?
 楼主| 发表于 2014-1-21 12:41:00 | 显示全部楼层
太好了,兄弟,刚才反复试了一下,好像一般某些个软件的静默参数都是/S,你帮了我一个大忙哈~
发表于 2014-1-23 10:13:41 | 显示全部楼层
无非是出现一个新窗口,识别这个窗口不就可以了吗?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-12-22 23:26 , Processed in 0.082277 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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