Jump to content

Recommended Posts

Posted

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.

  • Developers
Posted

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?

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.
  :)

Posted

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

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
×
×
  • Create New...