|
发表于 2011-9-21 19:35:04
|
显示全部楼层
楼主帮我看看我这脚本 哪里可以改进
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_Res_Comment=脚本生成于: 2011年 09月 21日
#AutoIt3Wrapper_Res_Description=自动安装脚本, au3版本:3.3.5.1
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#Region AutoIt3Wrapper 预编译参数(常用参数)
#EndRegion AutoIt3Wrapper 预编译参数设置完成
;--------------------------------------------------------------;设置脚本参数
$WinTitle = "安装程序 - UltraISO"
$WinTxt1 = "即将在您的计算机上安"
$WinTxt2 = "We try to"
$WinTxt3 = "选择安装文件夹"
$WinTxt4 = "在哪里创建快捷方式?"
$WinTxt5 = "选择额外任务"
$WinTxt6 = "建立 U"
$WinTxt7 = "完成(&F)"
$WinTitle8 = "欢迎"
$WinTxt8 = "订购UltraISO"
$WinTitle9 = "注册"
$WinTxt9 = "取 消"
$WinTitle10 = "提示"
$WinTxt10 = "注册码已经录入,请重新运行程序!"
;--------------------------------------------------------------;程序启动,显示界面
Run("UltraISO.exe")
WinWaitActive($WinTitle, $WinTxt1)
ControlClick($WinTitle, $WinTxt1, "TNewButton1")
WinWaitActive($WinTitle, $WinTxt2)
ControlClick($WinTitle, $WinTxt2, "TNewRadioButton1")
ControlClick($WinTitle, $WinTxt2, "TNewButton2")
WinWaitActive($WinTitle, $WinTxt3)
ControlClick($WinTitle, $WinTxt3, "TNewButton3")
WinWaitActive($WinTitle, $WinTxt4)
ControlClick($WinTitle, $WinTxt4, "TNewButton4")
WinWaitActive($WinTitle, $WinTxt5)
ControlClick($WinTitle, $WinTxt5, "TNewButton4")
WinWaitActive($WinTitle, $WinTxt6)
ControlClick($WinTitle, $WinTxt6, "TNewButton4")
WinWaitActive($WinTitle, $WinTxt7)
ControlClick($WinTitle, $WinTxt7, "TNewButton4")
WinWaitActive($WinTitle8, $WinTxt8)
ControlClick($WinTitle8, $WinTxt8, "TButton4")
WinWaitActive($WinTitle9, $WinTxt9)
ControlSetText($WinTitle9 , $WinTxt9, "TEdit1", "TEAM ZWT")
ControlSetText($WinTitle9 , $WinTxt9, "TEdit2", "4FFB-6D99-4A3D-07B9")
ControlClick($WinTitle9, $WinTxt9, "TButton2")
WinWaitActive($WinTitle10, $WinTxt10)
ControlClick($WinTitle10, $WinTxt10, "Button1") |
|