|
学习编写了一个最新版qq安装脚本,但安装到最后一步出现"腾讯QQ2012 安装向导","完成(&F)"窗口时,停止住了,无法点选掉四个安装最后设置项,而且停在那里了,我的脚本编写有什么问题,如何改正?请大虾们多多指教。qq.exej是官网上的最新版,版本号为1.88.5062.0,下边是我的脚本:
#RequireAdmin
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=ico.ico
#AutoIt3Wrapper_outfile=自动安装.exe
#AutoIt3Wrapper_Res_Comment=www.51aou.com 制作:醉爱清茶
#AutoIt3Wrapper_Res_Description=下载吧 - QQ2012 安装脚本
#AutoIt3Wrapper_Res_LegalCopyright=版权所有 (C) 2010
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#Region AutoIt3Wrapper 预编译参数(常用参数)
#EndRegion AutoIt3Wrapper 预编译参数(常用参数)
TrayTip(" 温馨提示", "自动安装期间为避免操作失败,请勿动键盘鼠标", 15, 4)
Run("qq.exe")
WinWaitActive("腾讯QQ2012 安装向导", "在安装软件前, 请仔细阅读下面的软件许可协议和青少年")
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","在安装软件前, 请仔细阅读下面的软件许可协议和青少年",1020,"check","" )
Sleep(100)
Send("!N")
WinWaitActive("腾讯QQ2012 安装向导","自定义安装选项")
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","自定义安装选项",1007,"uncheck","" )
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","自定义安装选项",1017,"uncheck","" )
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","自定义安装选项",3016,"uncheck","" )
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","自定义安装选项",3018,"uncheck","" )
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","自定义安装选项",1036,"uncheck","" )
Sleep(100)
Send("!N")
WinWaitActive("腾讯QQ2012 安装向导", "程序安装目录")
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导", "程序安装目录",1002,"check","" )
Sleep(100)
Send("!I")
WinWaitActive("腾讯QQ2012 安装向导","软件更新方式")
Sleep(100)
ControlCommand ("腾讯QQ2012 安装向导","软件更新方式",3020,"check","" )
Sleep(100)
Send("!N")
WinWaitActive("腾讯QQ2012 安装向导","安装(&I)")
Sleep(100)
WinWaitClose("腾讯QQ2012 安装向导","安装(&I)")
Sleep(100)
WinWaitActive("腾讯QQ2012 安装向导","完成(&F)")
ControlCommand ("腾讯QQ2012 安装向导","完成(&F)",1047,"uncheck","" )
Sleep(300)
ControlCommand ("腾讯QQ2012 安装向导","完成(&F)2",1045,"uncheck","" )
Sleep(300)
ControlCommand ("腾讯QQ2012 安装向导","完成(&F)",1038,"uncheck","" )
Sleep(300)
ControlCommand ("腾讯QQ2012 安装向导","完成(&F)",1046,"uncheck","" )
Sleep(300)
Send("!F") |
|