WEB开发网
开发学院服务器WEB服务器综合平台 AutoIt自动远程登陆Windows Server 2003机器 阅读

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

Tags:AutoIt 自动 远程

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