DoOutOfBox

Activate an Opened App at Remote Desktop

14 posts in this topic

#1 ·  Posted

I'm new here. I wanted to know if Autoit can allow me to activate an existing / opened web page at my remote desktop. Can you help with the commands.

Share this post


Link to post
Share on other sites



#2 ·  Posted

22 hours ago, DoOutOfBox said:

I'm new here. I wanted to know if Autoit can allow me to activate an existing / opened web page at my remote desktop. Can you help with the commands. Please let me know if you've not understood my question.

 

Share this post


Link to post
Share on other sites

#3 ·  Posted

You will have to run it on the remote PC. The commands are  easy - WinActivate(). Check it in the help file.

1 person likes this

Share this post


Link to post
Share on other sites

#4 ·  Posted

2 hours ago, Juvigy said:

You will have to run it on the remote PC. The commands are  easy - WinActivate(). Check it in the help file.

Thank you for sharing your idea, Juvigy. You understood my requirement exactly. I did this with the help of WinActive() function. But Is there any option to run the same step from Local Desktop? I'm wondering if Autoit has any other function 'in specific' to activate any opened window which is in a remote desktop?

Share this post


Link to post
Share on other sites

#5 ·  Posted

Thank you for sharing your idea, Juvigy. You understood my requirement exactly. I did this with the help of WinActive() function. But Is there any option to run the same step from Local Desktop? I'm wondering if Autoit has any other function 'in specific' to activate any opened window which is in a remote desktop?

Share this post


Link to post
Share on other sites

#6 ·  Posted

From Local desktop it is a lot more difficult.  It think it might work with th Control functions like ControlSend.

1 person likes this

Share this post


Link to post
Share on other sites

#7 ·  Posted

The Remarks states: ControlSend() works in a similar way to Send() but it can send key strokes directly to a window/control, rather than just to the active window. 

So no option.

We need know if there is any other set of guidelines to follow while working with remote desktop.

 

Share this post


Link to post
Share on other sites

#8 ·  Posted

Why not? You can "send" activation command to the window even though it is not active.

1 person likes this

Share this post


Link to post
Share on other sites

#9 ·  Posted

Autoit Need Run ON Remote PC not your PC! 

 


Regards,
 

Share this post


Link to post
Share on other sites

#10 ·  Posted

So can we conclude that the AutoIT wont run on remote PC?

 

Share this post


Link to post
Share on other sites

#11 ·  Posted

No. It will run. For example using PSEXEC. There are some limitations.

1 person likes this

Share this post


Link to post
Share on other sites

#12 ·  Posted

I'll try to illustrate it:

PC 1 has a Remote Desktop connection to PC 2

PC 2 is only receiving mouse and keyboard inputs from PC 1
PC 1 is only receiving screen captures from PC 2


Thusly,
Window and control handles/IDs on PC 2 are not directly accessible on PC 1.
Window and control functions on PC 1 can not see or directly communicate with window/control handles/IDs on PC 2

 

You need to run AutoIt on the Remote PC (PC 2) if you want to interact with the windows/controls.

1 person likes this

Share this post


Link to post
Share on other sites

#13 ·  Posted

@ spudw2k: Thank you. Placing the tool on the remote PC (PC 2) would be a good procedure. But there is a challenge to do so. I do not have a permission to place the tool anywhere on the remote PC.

So does Autoit has any key function to address these challenges or do we need to relay on other programming source in such scenarios. Please share your views.

Share this post


Link to post
Share on other sites

#14 ·  Posted

1. Compile your script to receive exe file.
2. Connect to the remote pc, and copy and paste it anywhere. If RPD does not support copy and paste files

you can upload/download exe file to any email or upload to website and download it to a remote computer.
3.Finally run it on the remote pc.


Regards,
 

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