这是脚本:;本脚本由i-Autoit[AutoitCN专用版]生成 2009年06月20日
Run( "UltraISO 9.3.0.2600_pe.exe")
TrayTip( "正在安装","UltraISO 9.3.0.2600_pe.exe,请稍后......",10,1)
Sleep(1000)
WinWaitActive("Setup - UltraISO", "Welcome to the UltraISO Setup Wizard") ;--------激活目标窗口--------
controlclick("Setup - UltraISO", "Welcome to the UltraISO Setup Wizard","TNewButton1" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "License Agreement","TNewRadioButton1" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "License Agreement","TNewButton2" ) ;--------点击目标按钮--------
send("D:\Program Files\UltraISO") ;--------发送键盘命令--------
controlclick("Setup - UltraISO", "Select Destination Location","TNewButton3" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "Select Start Menu Folder","TNewButton4" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "Select Additional Tasks","TNewButton4" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "Ready to Install","TNewButton4" ) ;--------点击目标按钮--------
controlclick("Setup - UltraISO", "Completing the UltraISO Setup Wizard","TNewButton4" ) ;--------点击目标按钮--------
sleep(1000);这句是自己加的
WinWaitActive("Welcome", "Enter Registration Code") ;--------激活目标窗口--------
controlclick("Welcome", "Enter Registration Code","TButton4" ) ;--------点击目标按钮--------
WinWaitActive("Registration", "&OK") ;--------激活目标窗口--------
send("UW-Madison Executive Education") ;--------发送键盘命令--------;只能这样,不会按con....text
send("{TAB}") ;--------发送键盘命令--------
send("1519-E287-A828-A24A") ;--------发送键盘命令--------
controlclick("Registration", "&OK","TButton2" ) ;--------点击目标按钮--------
controlclick("Prompt", "OK","Button1" ) ;--------点击目标按钮--------
Run("D:\Program Files\UltraISO\UltraISO.exe");这句是自己加的
send("!o") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Right}") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Down}") ;--------发送键盘命令--------
send("{Enter}") ;--------发送键盘命令--------
sleep(1000);这句是自己加的
send("!{F4}");--------发送键盘命令---------
sleep(1000);这句是自己加的
Run("D:\Program Files\UltraISO\UltraISO.exe");这句是自己加的
MsgBox(4096, "The Setup Was Completed !", "kn007 All Rights Reserved ! E-Mail:kn007@126.com");这句是自己加的
exit;这句是自己加的
|