Sign in to follow this  
Followers 0
nnps

Remote Desktop control of Autoit

5 posts in this topic

I have a script on my local pc that logs into a remote session onto a server. On the

server I have more scripts that have hotkeys. I tried to send a hotkey through

my local script to the server script, but nothing happens.

I am able to open up excel remotely and open a file and send the shortcut keys

to a macro that I have in excel, and it runs perfectly. But the autoit hotkey does

not work? I can of course send the command manually, but this defeats the purpose.

The autoit script is set to startup when I logon to the computer, so it is running.

Can you send a command to activate a hotkey command in another script? :P

Thanks!

John

Share this post


Link to post
Share on other sites



don't quote me on this, but i think that autoit intercept the presses from the actual hardware keyboard, and interrupts them before it is sent to be retrieved by the the active application. In this case, it would be very hard to control it using remote access (I don't say impossible because I have learned that very few things don't have work-arounds in computers).

Maybe wait until a dev comes along to approve or disprove this, because frankly, this info is all from fuzzy memory, and I really don't know what I'm talking about :D:P


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

Make an autoit script on the other computer to send the keys!


tolle indicium

Share this post


Link to post
Share on other sites

Make an autoit script on the other computer to send the keys!

Hmmm.. I do not think that I understand? How would the script on the other

computer know when I want it to send the keys?

I have a script on the other computer that have hotkeys associated with it,

I am trying to call those hotkeys with my local script.

Can you clarify, because I feel very dense this morning. :P

Thanks!

John

Share this post


Link to post
Share on other sites

Make a script that listens for a TCP connection. When you TCPSend($tcp, "hotkey 1") (or whatever the syntax is, i've forgotten), that script receives that tcp packet on the remote computer and hits whatever hotkey you want, or Send("{F1}").

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