Jump to content
Sign in to follow this  
apachetypewriter

Script slow over RDP remote desktop and doesn't fully execute

Recommended Posts

apachetypewriter

Hi, I used AU3Record to create a very simple script that clicks in 3 textboxes and enters 3 numbers, the 3 numbers are 10, 20 and 30. Works fine on my local machine, so I used RDP (windows remote desktop) to log onto a Windows Server 2008 machine and ran it at the same screen resolution.

Now if I sit and watch it run on that server over RDP, it works fine, but it all happens in slow motion, though all 3 textboxes do get populated. Next I exit the RDP session by running this on the command line: RDP-Tcp#0 /dest:console

This allows me to exit it without locking the screen so the AutoIt script still runs, however when I log back in after the script has run, the first textbox has “102030” in it, so it’s almost like it hit the first textbox but didn’t hit the other 2 textboxes correctly however the script populates the textboxes correctly when I sit and watch it… Any ideas? Heres my script:

MouseClick("left",1034,552,1)
Sleep(1500)
Send(10)
Sleep(1500)
MouseClick("left",1192,445,1)
Sleep(1500)
Send(20)
Sleep(1500)
MouseClick("left",1189,491,1)
Sleep(1500)
Send(30)

Share this post


Link to post
Share on other sites
apachetypewriter

One thing I did notice was that autoit v3 was installed on my local machine but that shouldn't make a difference because it still runs over RDP as I have compiled it to an exe. Is it worth installing? Otherwise I might have to look at alternatives :(

Share this post


Link to post
Share on other sites
ironsled

Im not a pro like most on here. I do have some experience with RDP and Autoit. Instead of using mouse clicks, have you tried ControlClick? I have had luck using this instead of having the window open for the RDP session. Cheers!

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  

×