xybest 发表于 2008-10-15 22:57:11

怎么用au3编万象2004客户端自动安装脚本?

我是刚学的,有个朋友在网吧做网管,因为是他自己给网吧搞维护,每次做好的系统都要一台一台的装万象2004客户端 看到好朋友这么辛苦我有帮不上
因为我也不是很懂 希望各位 高手 帮忙写个 感激不尽 谢谢!!~~

[ 本帖最后由 xybest 于 2008-10-19 00:38 编辑 ]

liongodmien 发表于 2008-10-16 09:31:33

呵呵,说得简单点,就是:你把帮助完全看完,然后会用其中一小部分,那就会编了!

gordonbwb 发表于 2008-10-16 12:46:04

;本程序为万象920版客户端,如果是别的版本自动修改
RUN ("Clt2K.exe");客户端安装程序

blockinput(1);锁定键盘,如果出错请按ctrl+alt+del

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","欢迎使用 万象网管2004")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton1")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","许可协议")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TRadioButton1")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","信息")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","选择协议类型")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","选择组件")
ControlCommand("安装 - 万象网管2004 For 2000/XP 客户端","选择组件","TComboBox1","SetCurrentSelection",1);哈哈这是新学的,请看帮助
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","选择附加任务")
Send("{SPACE}")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","准备安装")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

WinWaitActive ("安装 - 万象网管2004 For 2000/XP 客户端","万象网管2004 For 2000/XP 客户端 安装向导完成")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TRadioButton2")
ControlClick ("安装 - 万象网管2004 For 2000/XP 客户端","","TButton2")

;删除桌面的快捷方式,不喜欢的自己选择
FileDelete(@DesktopCommonDir & "\换机.lnk")
FileDelete(@DesktopCommonDir & "\结帐下机.lnk")
FileDelete(@DesktopCommonDir & "\看我用了多久.lnk")
FileDelete(@DesktopCommonDir & "\万象挂机锁.lnk")
FileDelete(@DesktopCommonDir & "\向服务端发送消息.lnk")
FileDelete(@DesktopCommonDir & "\修改会员卡密码.lnk")

blockinput(0);解开键盘锁定

qq1244521 发表于 2009-10-21 02:36:58

:face (28):很明显直接写完了
页: [1]
查看完整版本: 怎么用au3编万象2004客户端自动安装脚本?