AutoIt自动远程登陆Windows Server 2003机器
2012-05-15 09:57:49 来源:WEB开发网核心提示:RunWait(@ComSpec & " /c start /MAX mstsc /v:RemoteServerName",@SystemDir,@SW_SHOW)Sleep(2000)WinWaitActive("Remote Desktop Connection")Contr
RunWait(@ComSpec & " /c start /MAX mstsc /v:RemoteServerName",@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("RemoteServerName - Remote Desktop")
While 1
IF PixelGetColor(513, 603)=0x4AB5EF Then ExitLoop
Sleep(500)
WEnd
Send("{ENTER}")
更多精彩
赞助商链接
