Jump to content
Sign in to follow this  
Wen

start run line in remote desktop

Recommended Posts

Wen

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
jefhal

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
Wen

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
Davo

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  

×