标题:
AutoIT脚本之——优化大师安装注册!
[打印本页]
作者:
FireDrake
时间:
2005-8-30 23:35
标题:
AutoIT脚本之——优化大师安装注册!
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.1.0
; Author:LCL;
; Script Function:install wom6.7 and registe it!
; 其实AutoIT很简单的!大家就是没有一个合适的入门教材罢了!希望我的这篇对大家有
; 帮助!一定要注意AutoIt Window Info这个小程序的应用!
; ----------------------------------------------------------------------------
; Script Start - Add your code below here
;install wom 6.7
Opt("CaretCoordMode",0)
Opt("MouseCoordMode",0)
run("Wom6.7.exe")
WinWaitActive("Windows优化大师","将要开始安装")
ControlClick("Windows优化大师","将要开始安装","Button1")
WinWaitActive("Windows优化大师","软件许可协议")
ControlClick("Windows优化大师","软件许可协议","Button1")
WinWaitActive("Windows优化大师安装/卸载工具","Windows优化大师 安装/卸载")
ControlClick("Windows优化大师安装/卸载工具","Windows优化大师 安装/卸载","TFlatRadioButton2")
ControlClick("Windows优化大师安装/卸载工具","Windows优化大师 安装/卸载","TFlatButton3")
WinWaitActive("Windows优化大师安装/卸载工具","明白了")
ControlClick("Windows优化大师安装/卸载工具","明白了","TFlatRadioButton2")
ControlClick("Windows优化大师安装/卸载工具","明白了","TFlatButton4")
WinWaitActive("Windows优化大师安装/卸载工具","C:\Program Files\Wom")
ControlClick("Windows优化大师安装/卸载工具","C:\Program Files\Wom","TFlatButton4")
WinWaitActive("Windows优化大师安装/卸载工具","Windows优化大师 安装/卸载")
MouseClick("left",31,186,1,1)
ControlClick("Windows优化大师安装/卸载工具","Windows优化大师 安装/卸载","TFlatButton4")
WinWaitActive("Windows优化大师安装/卸载工具","退出安装程序后自动运行")
MouseClick("left",148,217,1,1)
;ControlClick("Windows优化大师安装/卸载工具","退出安装程序后自动运行","TFlatCheckBox1")
ControlClick("Windows优化大师安装/卸载工具","退出安装程序后自动运行","TFlatButton5")
;registed wom 6.7
WinWaitActive("Windows优化大师","未注册")
ControlClick("Windows优化大师","未注册","TFlatButton6")
WinWaitActive("","注册认证")
ControlSetText("","注册认证","TFlatEdit6","lichunlei")
ControlClick("","注册认证","TFlatButton4")
WinWaitActive("Windows优化大师","注册申请码已经生成")
ControlClick("Windows优化大师","注册申请码已经生成","Button2")
WinWaitActive("","注册认证")
$reg_code=ControlGetText("","注册认证","TFlatEdit5")
run("Keygen.exe")
WinWaitActive("Form1")
MouseClick("left",120,360,1,1)
WinWaitActive("Windows优化大师 v5.92")
ControlSetText("Windows优化大师 v5.92","","ThunderRT6TextBox3",$reg_code)
$judge_code=ControlGetText("Windows优化大师 v5.92","","ThunderRT6TextBox2")
WinClose("Windows优化大师 v5.92",$reg_code)
WinActivate("","注册方法说明")
$reg_code=StringLeft($judge_code,8)
ControlSetText("","注册方法说明","TFlatEdit4",$reg_code)
$judge_code=StringTrimLeft($judge_code,9)
$reg_code=StringLeft($judge_code,8)
ControlSetText("","注册方法说明","TFlatEdit1",$reg_code)
$judge_code=StringTrimLeft($judge_code,9)
$reg_code=StringLeft($judge_code,8)
ControlSetText("","注册方法说明","TFlatEdit3",$reg_code)
$judge_code=StringTrimLeft($judge_code,9)
$reg_code=StringLeft($judge_code,8)
ControlSetText("","注册方法说明","TFlatEdit2",$reg_code)
ControlClick("","注册方法说明","TFlatButton2")
WinWaitActive("Windows优化大师","已注册")
WinClose("Windows优化大师","已注册")[br][br]
-=-=-=-=- 以下内容由
FireDrake
在
2005年08月30日 03:44pm
时添加 -=-=-=-=-
这段脚本还有一些问题!仅做示例用!请大家自己完善!
作者:
xzf
时间:
2005-8-30 23:47
标题:
AutoIT脚本之——优化大师安装注册!
还望你对每个作用作个详细解释,这样大家易懂些,
作者:
boylinxing
时间:
2005-9-6 11:45
标题:
AutoIT脚本之——优化大师安装注册!
[这个贴子最后由boylinxing在 2005/09/06 03:50am 第 1 次编辑]
有下过,没用过
这个是官方网站
http://www.autoitscript.com/autoit3/[br][br][color=#990000]
-=-=-=-=- 以下内容由
boylinxing
在
2005年09月06日 03:49am
时添加 -=-=-=-=-
中文说明书
http://down.wglm.net/Software/catalog7/158.html
欢迎光临 EZB 论坛 (http://ultraiso.net/ezbbbs/)
Powered by Discuz! 6.1.0