ahk-server

An AutoHotkey server allowing remote clients to execute ahk functionality


Keywords
ahk, autohotkey, windows, mouse, keyboard, automation, pyautogui, server, remote
License
MIT
Install
pip install ahk-server==0.0.1

Documentation

ahk-server

A server to allow remote execution of AutoHotkey using the Python ahk wrapper. Uses fastapi.

Installation

pip install ahk-server

Requires you have AutoHotkey installed. See ahk readme for non-python dependencies.

Usage

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

Standalone release

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.

Status

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