Sign in to follow this  
Followers 0
Wen

start run line in remote desktop

4 posts in this topic

Hi,

I am trying to start the run line (start > run) after logging into a remote desktop, but I could not get it to work. The following codes did not help. Any help? Thanks

$handle = WinGetHandle($client & " - Remote Desktop")

WinSetState($handle, "", @SW_MAXIMIZE)

Sleep(4000)

WinActivate($handle, "")

ControlSend($handle, "", "OPWindowClass1", "#r")

Wen

Share this post


Link to post
Share on other sites



I am trying to start the run line (start > run) after logging into a remote desktop, but I could not get it to work. The following codes did not help. Any help? Thanks

Send("{LWIN} R")

...by the way, it's pronounced: "JIF"... Bob Berry --- inventor of the GIF format

Share this post


Link to post
Share on other sites

Send("{LWIN} R")
Thanks for your reply. But this only goes to the local desklop, not the remote desktop I just opened. Thanks.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

The windows key can't be sent to another computer remotely.

Dave

PS. you might want to try

Send("^{esc}")

I don't know if this works either but worth a shot

Edited by Davo

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

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