;本脚本由i-Autoit-1.01 正式版 生成 ,非常感谢您的使用,请保留此脚本声明! 2011年01月15日
;--------------------------------------------------------------;脚本开始
Opt("TrayIconDebug", 1) ;0=无信息, 1=调试信息
Opt("WinTextMatchMode", 2) ;1=完全匹配, 2=快速匹配
Opt("WinTitleMatchMode", 4) ;1=开头, 2=子串, 3=完全, 4=高级
Opt("WinSearchChildren", 1) ;0=不搜索, 1=搜索子窗口
Opt("WinDetectHiddenText", 1) ;0=不检测, 1=检测
;--------------------------------------------------------------;设置脚本参数
$WinTitle_1= 'QQ拼音输入法4.0安装向导'
$WinTitle_2= 'QQ拼音输入法4.0安装向导 '
$WinTitle_3= ''
$Wintxt_1= '下一步(&N) >'
$Wintxt_2= '< 上一步(&P)'
$Wintxt_3= '安装(&I)'
$Wintxt_4= '安装完成'
;--------------------------------------------------------------;窗口元素变量声明
$Exe = 'QQPinyin_Setup_40_1023.exe'
If ProcessExists($Exe) Then ProcessClose($Exe)
If Run($Exe) = 0 Then ShellExecute($Exe)
Do
Sleep(10);
Until WinExists($Wintitle_1)
;WinMove($Wintitle_1, "", -1000, -1000)
;--------------------------------------------------------------;程序启动,显示界面
WinWaitActive($Wintitle_1, $Wintxt_1);
ControlClick($Wintitle_1, $Wintxt_1, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_2, $Wintxt_2);
ControlClick($Wintitle_2, $Wintxt_2, "Button2");---------------;点击按钮控件: 安装(&I)
WinWaitActive($Wintitle_2, $Wintxt_3);
ControlClick($Wintitle_2, $Wintxt_3, "Button2");---------------;点击按钮控件: 安装(&I)
WinWaitActive($Wintitle_2, $Wintxt_4);
ControlClick($Wintitle_2, $Wintxt_4, "Button5");---------------;点击按钮控件: 运行设置向导
Sleep(200)
ControlClick($Wintitle_2, $Wintxt_4, "Button2")
$winTitle_3= 'QQ拼音输入法-个性化设置向导'
$Wintxt_5="欢迎使用个性化设置向导"
WinWaitActive($Wintitle_3,$Wintxt_5)
ControlClick($Wintitle_3, $Wintxt_5, "Button1")
$Wintxt_6="设置输入法常用风格"
WinWaitActive($Wintitle_3,$Wintxt_6)
ControlClick($Wintitle_3, $Wintxt_6, "Button1")
$Wintxt_7="设置输入法主要使用习惯"
WinWaitActive($Wintitle_3,$Wintxt_7)
ControlClick($Wintitle_3, $Wintxt_7, "Button1")
$Wintxt_8="选择个性皮肤"
WinWaitActive($Wintitle_3,$Wintxt_8)
ControlClick($Wintitle_3, $Wintxt_8, "Button1")
$Wintxt_9="管理系统输入法"
WinWaitActive($Wintitle_3,$Wintxt_9)
ControlClick($Wintitle_3, $Wintxt_9, "Button13")
Sleep(200)
ControlClick($Wintitle_3, $Wintxt_9, "Button1")
$Wintxt_10="设置您需要的城市词库和推荐词库"
WinWaitActive($Wintitle_3,$Wintxt_10)
ControlClick($Wintitle_3, $Wintxt_10, "Button1")
$Wintxt_11="登录QQ拼音"
WinWaitActive($Wintitle_3,$Wintxt_11)
ControlClick($Wintitle_3, $Wintxt_11, "Button1")
$Wintxt_12="完成个性化设置向导"
WinWaitActive($Wintitle_3,$Wintxt_12)
ControlClick($Wintitle_3, $Wintxt_12, "Button1")