How execute AHK from PHP ?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
jkeks
Posts: 60
Joined: 20 Oct 2019, 00:24
Contact:

How execute AHK from PHP ?

Post by jkeks » 19 Feb 2023, 00:31

Is there way execute AutoHotKeys script from PHP, without save script to file ?
Maybe as command line arguments ..

AutoHotKey.exe -r 'Run, calc.exe'

swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: How execute AHK from PHP ?

Post by swagfag » 19 Feb 2023, 04:01

https://www.autohotkey.com/docs/v1/Scripts.htm#defaultfile
[v1.1.17+]: Specify an asterisk (*) for the filename to read the script text from standard input (stdin). For an example, see ExecScript().

Post Reply

Return to “Ask for Help (v1)”