Sign in to follow this  
Followers 0
yorams70

remote desktop delay

3 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Save the RDP session as a shortcut including the userid&password?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0