#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=acad.ico
#AutoIt3Wrapper_outfile=AutoIns CAD 2007.exe
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_UseAnsi=y
#AutoIt3Wrapper_Res_Description=By Yusky.Me
#AutoIt3Wrapper_Res_Fileversion=2007.0.0.3
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministrator
#AutoIt3Wrapper_Res_LegalCopyright=Copyright 2010 Yusky Group Co,.Ltd ;版权
#AutoIt3Wrapper_Res_Field=程序设计|Yusky
#AutoIt3Wrapper_Res_Field=作者网站|http://Yusky.me
#AutoIt3Wrapper_Res_Field=更新日期|2010-07-18
#AutoIt3Wrapper_Res_Field=适用版本|AutoCAD 2007
#AutoIt3Wrapper_Res_Field=源文件名|AutoCAD 2007.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Run("Setup.exe")
WinWaitActive("Autodesk 安装程序")
ControlClick("Autodesk 安装程序","","Button1")
WinWaitActive("AutoCAD 2007 安装","取消")
ControlClick("AutoCAD 2007 安装","","Button2")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button6")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","取消")
ControlClick("AutoCAD 2007 安装","","Edit1")
Send("2222222222222")
ControlClick("AutoCAD 2007 安装","","Edit2")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Edit1")
Send("{BACKSPACE 11}/{BS}Yusky.Me")
ControlClick("AutoCAD 2007 安装","","Edit2")
;~ WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
WinWaitActive("AutoCAD 2007 安装","","Edit2")
Send("{BACKSPACE 11}/{BS}Yusky.Me")
ControlClick("AutoCAD 2007 安装","","Edit3")
WinWaitActive("AutoCAD 2007 安装","","Edit3")
Send("{BACKSPACE 11}/{BS}Yusky.Me")
ControlClick("AutoCAD 2007 安装","","Edit4")
WinWaitActive("AutoCAD 2007 安装","","Edit4")
Send("{BACKSPACE 11}/{BS}Yusky.Me")
;~ WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Edit5")
WinWaitActive("AutoCAD 2007 安装","","Edit5")
Send("{BACKSPACE 11}/{BS} 6783138")
;~ WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装","<上一步(&B)")
ControlClick("AutoCAD 2007 安装","","Button1")
WinWaitActive("AutoCAD 2007 安装程序","< 上一步(&B)")
ControlClick("AutoCAD 2007 安装程序","","Button1")
ControlClick("AutoCAD 2007 安装程序","","Button2")
;安装完毕,退出安装程序
Exit
使用Autoit3编译脚本,然后把EXE文件放到CAD的Bin目录下。