再次测试发现很多重复的命令(安装的快播)
;本脚本由i-Autoit-1.01 正式版 生成 ,非常感谢您的使用,请保留此脚本声明! 2010年10月22日
;--------------------------------------------------------------;脚本开始
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= 'Installer Language'
$WinTitle_2= '快播(QvodPlayer) 3.5 安装'
$WinTitle_3= '快播(QvodPlayer) 3.5 安装 '
$Wintxt_1= 'Cancel'
$Wintxt_2= '下一步(&N) >'
$Wintxt_3= '< 上一步(&P)'
$Wintxt_4= '下一步(&N) >'
$Wintxt_5= '选择安装路径'
$Wintxt_6= '安装(&I)'
$Wintxt_7= '完成(&F)'
;--------------------------------------------------------------;窗口元素变量声明
$Exe = 'QvodSetup3.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, "Button1");---------------;点击按钮控件: OK
ControlClick($Wintitle_1, $Wintxt_1, "Button1");---------------;点击按钮控件: OK
ControlClick($Wintitle_1, $Wintxt_1, "Button1");---------------;点击按钮控件: OK
WinWaitActive($Wintitle_2, $Wintxt_2);
ControlClick($Wintitle_2, $Wintxt_2, "Button2");---------------;点击按钮控件: 下一步(&N) >
ControlClick($Wintitle_2, $Wintxt_2, "Button2");---------------;点击按钮控件: 下一步(&N) >
ControlClick($Wintitle_2, $Wintxt_2, "Button2");---------------;点击按钮控件: 下一步(&N) >
ControlClick($Wintitle_2, $Wintxt_2, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_3, $Wintxt_3);
ControlClick($Wintitle_3, $Wintxt_3, "Button2");---------------;点击按钮控件: 我接受(&I)
ControlClick($Wintitle_3, $Wintxt_3, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_3, $Wintxt_4);
ControlClick($Wintitle_3, $Wintxt_4, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_2, $Wintxt_4);
ControlClick($Wintitle_2, $Wintxt_4, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_2, $Wintxt_5);
ControlClick($Wintitle_2, $Wintxt_5, "Button9");---------------;点击按钮控件: 在Windows启动时运行网络模块
ControlClick($Wintitle_2, $Wintxt_5, "Button2");---------------;点击按钮控件: 下一步(&N) >
ControlClick($Wintitle_2, $Wintxt_5, "Button2");---------------;点击按钮控件: 下一步(&N) >
WinWaitActive($Wintitle_2, $Wintxt_6);
ControlClick($Wintitle_2, $Wintxt_6, "Button4");---------------;点击按钮控件: 安装百度工具栏
ControlClick($Wintitle_2, $Wintxt_6, "Button2");---------------;点击按钮控件: 安装(&I)
ControlClick($Wintitle_2, $Wintxt_6, "Button2");---------------;点击按钮控件: 安装(&I)
ControlClick($Wintitle_2, $Wintxt_6, "Button2");---------------;点击按钮控件: 安装(&I)
WinWaitActive($Wintitle_3, $Wintxt_7);
ControlClick($Wintitle_3, $Wintxt_7, "Button5");---------------;点击按钮控件: 推荐360浏览器
ControlClick($Wintitle_3, $Wintxt_7, "Button5");---------------;点击按钮控件: 推荐360浏览器
ControlClick($Wintitle_3, $Wintxt_7, "Button4");---------------;点击按钮控件: 运行 快播(QvodPlayer) 3.5(&R)
ControlClick($Wintitle_3, $Wintxt_7, "Button4");---------------;点击按钮控件: 运行 快播(QvodPlayer) 3.5(&R)
ControlClick($Wintitle_3, $Wintxt_7, "Button2");---------------;点击按钮控件: 完成(&F)
ControlClick($Wintitle_3, $Wintxt_7, "Button2");---------------;点击按钮控件: 完成(&F)
ControlClick($Wintitle_3, $Wintxt_7, "Button2");---------------;点击按钮控件: 完成(&F)
ControlClick($Wintitle_3, $Wintxt_7, "Button2");---------------;点击按钮控件: 完成(&F) |