Run('QQ2009.exe')
WinWait("腾讯QQ2009 安装向导","我已阅读并同意软件许")
If Not WinActive("腾讯QQ2009 安装向导","我已阅读并同意软件许") Then WinActivate("腾讯QQ2009 安装向导","我已阅读并同意软件许")
WinWaitActive("腾讯QQ2009 安装向导","我已阅读并同意软件许")
ControlClick("腾讯QQ2009 安装向导","我已阅读并同意软件许","Button1")
Send("{ALTDOWN}n{ALTUP}")
WinWait("腾讯QQ2009 安装向导","将浏览器的首页设置为")
If Not WinActive("腾讯QQ2009 安装向导","将浏览器的首页设置为") Then WinActivate("腾讯QQ2009 安装向导","将浏览器的首页设置为")
WinWaitActive("腾讯QQ2009 安装向导","将浏览器的首页设置为")
ControlClick("腾讯QQ2009 安装向导","将浏览器的首页设置为","Button9")
ControlClick("腾讯QQ2009 安装向导","安装腾讯软件管理器","Button8")
ControlClick("腾讯QQ2009 安装向导","安装QQ工具栏","Button10")
ControlClick("腾讯QQ2009 安装向导","将安装中文搜搜","Button11")
ControlClick("腾讯QQ2009 安装向导","快速启动栏","Button7")
Send("{ALTDOWN}n{ALTUP}")
WinWait("腾讯QQ2009 安装向导","腾讯QQ2009 安装向导")
If Not WinActive("腾讯QQ2009 安装向导","腾讯QQ2009 安装向导") Then WinActivate("腾讯QQ2009 安装向导","腾讯QQ2009 安装向导")
WinWaitActive("腾讯QQ2009 安装向导","请选择安装路径")
ControlSetText("腾讯QQ2009 安装向导","请选择安装路径","Edit1","D:\Program Files\QQ")
Send("{ALTDOWN}I{ALTUP}")
WinWait("腾讯QQ2009 安装向导","开机时启动腾讯QQ2009")
If Not WinActive("腾讯QQ2009 安装向导","开机时启动腾讯QQ2009") Then WinActivate("腾讯QQ2009 安装向导","开机时启动腾讯QQ2009")
WinWaitActive("腾讯QQ2009 安装向导","开机时启动腾讯QQ2009")
ControlClick("腾讯QQ2009 安装向导","","Button6")
ControlClick("腾讯QQ2009 安装向导","","Button7")
ControlClick("腾讯QQ2009 安装向导","","Button8")
Send("{ALTDOWN}f{ALTUP}") |