找回密码
 加入
搜索
查看: 2715|回复: 1

[原创] autocad2008简体中文完整版安装脚本(楼下那个用不了的)

[复制链接]
发表于 2012-12-31 17:53:09 | 显示全部楼层 |阅读模式
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_Outfile=autocad2002.exe
#PRE_UseUpx=n
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****

const $a="先退出360安全卫士和360杀毒或者qq管家,再点击确定,在安装过程中,请别动鼠标和键盘!"

$var=MsgBox(1+48+256, "2008自动安装包", $a, 2500)

dim $var
select
 case $var=2
 exit
EndSelect

BlockInput(0)

Run("d:\autocad2008x32\setup.exe")



WinWaitActive("AutoCAD 2008","查看自述文件(&R)")
WinActive("AutoCAD 2008","查看自述文件(&R)")
Sleep(1000)
Send("{enter}")



WinWaitActive("AutoCAD 2008","下一步(&N) >")
WinActive("AutoCAD 2008","下一步(&N) >")
Sleep(1000)
Send("!N")



WinWaitActive("AutoCAD 2008","AutoCAD 2008")
WinActive("AutoCAD 2008","AutoCAD 2008")
Sleep(2000)
Send("!N")

WinWaitActive("AutoCAD 2008","China")
WinActive("AutoCAD 2008","China")
ControlCommand("AutoCAD 2008","China","[CLASS:Button; INSTANCE:1]","check")
Sleep(2000)
Send("!N")

WinWaitActive("AutoCAD 2008","*名字(&F):")
WinActive("AutoCAD 2008","*名字(&F):")
ControlFocus("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:1]")
Sleep(1000)
ControlSetText("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:1]","hh")
Sleep(1000)
ControlFocus("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:2]")
Sleep(1000)
ControlSetText("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:2]","zg")
ControlFocus("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:3]")
Sleep(1000)
ControlSetText("AutoCAD 2008","*名字(&F):","[CLASS:Edit; INSTANCE:3]","ch")
Sleep(1000)
Send("!N")


WinWaitActive("AutoCAD 2008","选择要配置的产品(&S):")
WinActive("AutoCAD 2008","选择要配置的产品(&S):")
Sleep(1000)
Send("!N")


$text4="是(&Y)"
$title="AutoCAD 2008"
While 1
        If WinExists($title,$text4) Then 
        Send("!y")
   ExitLoop
        EndIf
WEnd

WinWaitActive("AutoCAD 2008","完成(&F)")
WinActive("AutoCAD 2008","完成(&F)")
Sleep(1000)
Send("!F")
Sleep(2000)

Run("C:\Program Files\AutoCAD 2008\acad.exe")
Sleep(10000)

Run("C:\Program Files\AutoCAD 2008\keygen.exe")
 楼主| 发表于 2012-12-31 17:55:36 | 显示全部楼层
keygen那个自动注册怎么弄的?

autoit的窗口信息查看器看不到东西?
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-11-21 23:53 , Processed in 0.066568 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表