AHK script doesn't work when launched remotely Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
AndrewKun
Posts: 24
Joined: 03 Jun 2015, 12:03

AHK script doesn't work when launched remotely

17 Feb 2017, 09:12

Hi,

I have an extremely simple AHK script which I need to run remotely on another PC. The script itself just sends the Space keystroke and closes itself:

Code: Select all

Send, {Space}
ExitApp
I've converted it to .exe and when I start it locally, it works, but I need to start it remotely. For that purpose I use utility called "PsExec". I can run any .bat or .exe scripts successfully on the remote machine, but when I try to run an AHK script - it doesn't do anything. I.e. it is executed (because error return code is 0) but nothing happens.

Can you give me any idea as to why? I suspect it have something to do with the user under which it is run, or maybe AHK scripts only work in interactive mode? I have no idea, but I really want to learn to launch AHK scripts remotely.
AndrewKun
Posts: 24
Joined: 03 Jun 2015, 12:03

Re: AHK script doesn't work when launched remotely  Topic is solved

17 Feb 2017, 12:37

After some digging, I found this wonderful thread and made it using tcp socket class:
https://autohotkey.com/board/topic/9437 ... rarbeitet/

Now, with combination of AHK+JoyToKey, I can use Xbox360 controller's guide button to pause/play a movie on my 2nd pc while playing a game like a mothe******g boss. Oh yeah!

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Draken, oktavimark and 409 guests