|
发表于 2010-3-9 15:54:23
|
显示全部楼层
Run ("QQ2009SP6.exe")
WinWaitActive ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009","Button1","Check","")
;选中
ControlClick ("腾讯QQ2009 安装向导","欢迎使用腾讯QQ2009","Button3","left","1")
;向指定控件发送鼠标点击命令
WinWaitActive ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button10","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button11","UnCheck","")
;选空
ControlClick ("腾讯QQ2009 安装向导","请选择自定义安装选项与快捷方式选项","Button2","left","1")
;向指定控件发送鼠标点击命令
ControlSetText ("腾讯QQ2009 安装向导","请选择安装路径","Edit1","c:\Program Files\Tencent\QQ")
;修改指定控件的文本
ControlClick ("腾讯QQ2009 安装向导","请选择安装路径","Button2","left","1")
;向指定控件发送鼠标点击命令
WinWaitActive ("腾讯QQ2009 安装向导","安装完成")
;等待指定窗口被激活后再执行下面的命令
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button6","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button8","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button9","UnCheck","")
;选空
ControlCommand ("腾讯QQ2009 安装向导","安装完成","Button7","UnCheck","")
;选空
ControlClick ("腾讯QQ2009 安装向导","安装完成","Button2","left","1")
;向指定控件发送鼠标点击命令 |
|