AutoHotkey v2.0.26 Linux Port — 正式版 / Official Release (linux.11)
·
4 commits
to linux-port
since this release
AutoHotkey v2.0.26 Linux Port — 正式版 / Official Release
v2.0.26-linux.11
整合全部历史更新的正式版(已清理并重并所有旧 Release)。
Consolidated official release (all earlier releases cleaned up and
re-published as one canonical build).
🆕 本版新增 / What's new
ahk uninstall— 干净卸载:移除启动器/解释器/文档,并逐级清理到前缀的空目录。
Clean uninstall: removes the launcher, interpreter and docs, then prunes
empty directories up to the prefix.ahk update [版本号]— 可选更新/降级:无参更新到 GitHub 最新 Release;
传版本号(如2.0.26-linux.8)升级或降级到指定版本。
Update or downgrade: no argument updates to the latest GitHub release,
a version argument (e.g.2.0.26-linux.8) upgrades/downgrades to it.- 修复:MsgBox 在窗口管理器下内容空白 — 对话框映射时被 WM 背景重绘清掉预画
文本,现 Expose 全量重绘文本+按钮(Ubuntu 25.10 实测复现与验证)。
Fix: MsgBox content was blank under a window manager; Expose now fully
repaints the text as well as the buttons (reproduced & verified on
Ubuntu 25.10). - 修复:ToolTip 始终显示为空白框 — 此前只设窗口标题、从不绘制正文;现真实
绘制文本并保留(background=None)。
Fix: ToolTip only set the window title and never drew its text (a blank
box everywhere); it now draws the text and keeps it visible.
能力总览 / Capabilities
- AutoHotkey v2 语言(无 v1)。基于 v2.0.26。
- X11 后端(含 XWayland):
- 窗口管理
Win*、控件Control*、热键Hotkey()/#HotIf(键盘+鼠标、
~/Off/透传、左右修饰键、通配、BadAccess 冲突报错) - 热字串(round-32 真实触发:C/*/O/X 选项、大小写跟随、HotIf)
- InputHook 实时按键采集(round-33:缓冲/结束键/匹配表/退格撤销/输入抑制)
- 剪贴板、像素/显示器、对话框、ToolTip、GTK3
Gui/Menu、
ImageSearch、WinSetRegion、SoundBeep/SoundPlay
- 窗口管理
- 原生 Wayland 后端 + XWayland 回退(sway headless 验证)
- DllCall(.so,dlopen/dlsym+libffi)、COM over D-Bus
- 验证 / Verification:doc-check 1053/1053(常规 + ASan 双构建)、
回归 27/27、Wayland 13/13、XWayland 247/247;CI(core/asan/package)全绿 - 367/370 函数已实现(3 个有意未实现:ComObjArray / TrayTip / TraySetIcon)
安装 / Install
# Debian/Ubuntu(推荐 / recommended)
sudo apt install ./autohotkey-linux-2.0.26-linux.11-amd64.deb
# 通用 tar 包 / generic tarball
tar xzf autohotkey-linux-2.0.26-linux.11-amd64.tar.gz
cd autohotkey-linux
./tools/linux/install-gui.sh # 图形向导 / graphical wizard
# 或 / or
./tools/linux/install.sh --prefix ~/.local
ahk your-script.ahk
ahk uninstall # 卸载 / uninstall
ahk update # 更新到最新 / update to latest
ahk update 2.0.26-linux.8 # 指定版本 / a specific version历史 / History
linux.1 … linux.10 的历次增量(DllCall/COM/GTK GUI、InputHook、图像解码、
Reload、热键审计批次、左右/通配/哈希、热字串、InputHook 采集等)见
GOALS.md/MODULE_MATRIX.md;所有包已合并为本正式版重新发布。
The incremental history (linux.1 … linux.10: DllCall/COM/GTK GUI, InputHook,
image decoders, Reload, hotkey-audit batches, left/right & wildcard & hash,
hotstrings, InputHook capture, …) is in GOALS.md/MODULE_MATRIX.md; all
packages are consolidated and re-published here.