AutoIt3(AU3)自动安装灰鸽子员工端脚本
Local $pid = run($CmdLine[1])
if $pid = 0 Then
MsgBox(0, "File not found", $CmdLine[1]);
EndIf
Sleep(3000)
Global $targetTitle = "Setup - System Sll"
While WinWaitActive($targetTitle,"",5)=0
WinActivate($targetTitle)
WinSetOnTop($targetTitle,"",1 )
WEnd
ControlClick($targetTitle,"","[CLASS:TNewButton; INSTANCE:1]")
While WinWaitActive($targetTitle,"Ready to install",5)=0
WinActivate($targetTitle)
WinSetOnTop($targetTitle,"",1 )
WEnd
ControlClick($targetTitle,"","[CLASS:TNewRadioButton; INSTANCE:1]")
ControlClick($targetTitle,"","[CLASS:TNewButton; INSTANCE:2]")
While WinWaitActive($targetTitle,"Installation continues internalization",5)=0
WinActivate($targetTitle)
WinSetOnTop($targetTitle,"",1 )
WEnd
ControlClick($targetTitle,"","[CLASS:TNewButton; INSTANCE:2]")
While WinWaitActive($targetTitle,"Setup has finished installing System Sll on your computer",5)=0
WinActivate($targetTitle)
WinSetOnTop($targetTitle,"",1 )
WEnd
ControlClick($targetTitle,"","[CLASS:TNewButton; INSTANCE:2]")
命令格式 你编译后的exe 灰鸽子员工端exe文件,例如installhgzclient.exe _123456.exe