WEB开发网
开发学院服务器其它服务 AutoIt自动远程登陆Vista机器 阅读

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}")

Tags:AutoIt 自动 远程

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接