dim $1,$2,$3,$4,$5,$6,$bt,$bt1,$ikbpath,$wwpath
$2 = InputBox("客户端编号","客户端编号:","","",1,6,-1,-1)
$6 = IniRead(@ScriptDir &"\setup.ini","网维服务器地址","网维服务端地址","")
$wwpath =IniRead(@ScriptDir &"\setup.ini","网维程序路径","PATH","")
run($wwpath)
WinWaitActive("网维大师客户机安装检测","")
ControlClick("网维大师客户机安装检测","","[class:Button;INSTANCE:2]")
WinWait("InstallShield Wizard","欢迎使用 网维大师(ICafe) 娱乐平台 InstallShield Wizard")
WinActivate("InstallShield Wizard","欢迎使用 网维大师(ICafe) 娱乐平台 InstallShield Wizard")
ControlClick("InstallShield Wizard","欢迎使用 网维大师(ICafe) 娱乐平台 InstallShield Wizard",1)
WinWait("问题","")
WinActivate("问题","")
ControlClick("问题","",6)
WinWait("InstallShield Wizard","许可证协议")
WinActivate("InstallShield Wizard","许可证协议")
ControlClick("InstallShield Wizard","许可证协议",6)
WinWaitActive("InstallShield Wizard","InstallShield Wizard 完成")
ControlClick("InstallShield Wizard","InstallShield Wizard 完成",1)
WinWaitActive("问题","是否安装")
ControlClick("问题","是否安装",7)
Sleep(1000)
WinWaitActive("客户端设置","")
ControlSetText("客户端设置","",1002,$2)
ControlSetText("客户端设置","",1030,$6)
ControlClick("客户端设置","",1000)
WinActivate("设置","")
ControlClick("设置","",6)