A server to allow remote execution of AutoHotkey using the Python ahk wrapper. Uses fastapi.
pip install ahk-server
Requires you have AutoHotkey installed. See ahk readme for non-python dependencies.
To start the server:
python -m ahk_server
This accepts two optional command line parameters: --host
and --port
. Alternatively, you can also configure the host
and port by setting the environment variables AHK_SERVER_HOST
and AHK_SERVER_PORT
.
Alternatively still, you can also invoke the server using uvicorn
uvicorn ahk_server.app:app
ahk-server
is also available in a standalone exe release which can be found in the releases page
For connecting to the server, see the client project: ahk-client.
This project (and its client counterpart) is usable, but in very early stages of development. Notably, it does not currently include any authentication mechanisms for securing server connections, so use with caution.
TODO:
A noninclusive list of things that might come in the future:
- support some kind of basic authentication
-
implement
run_script
functionality - implement non-blocking functionality
- implement extension negotiation with clients