AutoHotkey v2 Linux Port

This documentation set accompanies the AutoHotkey v2.0.26 Linux port (MonoEven/Autohotkey_Linux). The pages in this site are the official AutoHotkey v2 documentation, adapted for the Linux port. Only AutoHotkey v2 syntax is supported; the AutoHotkey v1 language, the v1-to-v2 migration material, and all Windows-specific behavior are not part of this port.

Language and syntax

Examples in this documentation

These pages mirror the official AutoHotkey v2 documentation, so their examples fall into three groups on Linux:

What works on Linux

All 367 built-in functions listed in the worklist are implemented (3 not-implemented error paths: ComObjArray, TrayTip, TraySetIcon); 1026 doc-check assertions pass under Xvfb (including 29 for DllCall against native .so libraries and 18 for the D-Bus COM layer). The port has two display backends:

Differences from Windows AutoHotkey

See CHECK_REPORT.md for the complete per-module report.

Latest release

The latest official release is v2.0.26-linux.11. Highlights of this release:

Build and install

git clone --branch linux-port https://github.com/MonoEven/Autohotkey_Linux.git
cd Autohotkey_Linux
cmake -S . -B build-core
cmake --build build-core -j$(nproc)
build-core/source/linux/core/ahk_core your-script.ahk

Prebuilt packages (tar.gz / .deb) and an installer are published with each GitHub Release: releases.

Version history

This port is based on AutoHotkey v2.0.26. The v1-to-v2 change documentation has been removed because v1 is not supported by this port.

Software License: GNU General Public License