Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

AutoIT not working on remote machine

$
0
0

Hi All,

 

This is my first post. I am using Autoit for automation of our website. The script I have works fine if i run it on my machine and i have the same setup on a different machine which i access using Remote Desktop Connection. The script works fine on RDC only till the time i keep the RDC session maximized. If i minimize the window, the script runs but it does not do anything. Please help me.

 

1st Script that i was using. This works on my machine.

 

WinWaitActive("[CLASS:ViewsTextfieldEdit]","","15")
 Send("vm2007{TAB}")
 Send("abcdef{Enter}")
 
after reading the posts on forum i changed it to:
 
WinWait("[CLASS:ViewsTextfieldEdit]","","20")
ControlSend("", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:2]", "vm2007{TAB}")
ControlSend("", "", "[CLASS:ViewsTextfieldEdit; INSTANCE:1]", "abcdef{Enter}")
 
The second one works even if i focus on something else on my primary machine but i need to keep the RDC session maximized. If i minimize it then it fails.
 
I read something about ControlID but do not know how to use it in my 2nd script. Can that solve the problem?
 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles