yorams70 Posted December 28, 2009 Share Posted December 28, 2009 Hi. I wrote small script to connect with remote desktop and save me the password typing time. AutoItSetOption("WinTitleMatchMode",2) Run("mstsc -v: remoteComputer") WinWaitActive(" Remote Desktop") Sleep(1000) ; wait 1 sec after win active Send("remoteComputerPassword") Send("{ENTER}") The problem is that there is a delay between WinWaitActive is triggered and the appearance of the "Log On to Windows" window, and since this "Log On" window is in the remote desktop, I can not apply WinWaitActive on it. Do you know a better way? Thanks. Link to comment Share on other sites More sharing options...
Developers Jos Posted December 28, 2009 Developers Share Posted December 28, 2009 Hi.I wrote small script to connect with remote desktop and save me the password typing time. AutoItSetOption("WinTitleMatchMode",2)Run("mstsc -v: remoteComputer")WinWaitActive(" Remote Desktop")Sleep(1000) ; wait 1 sec after win activeSend("remoteComputerPassword")Send("{ENTER}")The problem is that there is a delay between WinWaitActive is triggered and the appearance of the "Log On to Windows" window,and since this "Log On" window is in the remote desktop, I can not apply WinWaitActive on it.Do you know a better way?Thanks.Save the RDP session as a shortcut including the userid&password? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
yorams70 Posted December 28, 2009 Author Share Posted December 28, 2009 Save the RDP session as a shortcut including the userid&password?Thanks, you are right.http://www.microsoft.com/windowsxp/using/mobility/getstarted/starteremote.mspx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now