AutoIt自动远程登陆Vista机器
2012-05-15 09:56:47 来源:WEB开发网核心提示: 远程登陆RunWait(@ComSpec & " /c start /MAX mstsc /v:RemoteMachineName",@SystemDir,@SW_SHOW)Sleep(2000)WinWaitActive("Remote Desktop Connection"
远程登陆
RunWait(@ComSpec & " /c start /MAX mstsc /v:RemoteMachineName",@SystemDir,@SW_SHOW) Sleep(2000) WinWaitActive("Remote Desktop Connection") ControlSend("Remote Desktop Connection", "", "[CLASS:Edit; INSTANCE:2]", "domain\username") ControlSend("Remote Desktop Connection", "", "[CLASS:Edit; INSTANCE:3]", "password{ENTER}") WinWaitActive("RemoteMachineName - Remote Desktop") While 1 IF PixelGetColor(513, 603)=0x4AB5EF Then ExitLoop Sleep(500) WEnd Send("{ENTER}")
赞助商链接