Logitech G13 — Full AHK v2 binding script (raw HID, 3 layers, hold-to-repeat, run any AHK code per key)
Hey all — I couldn't find a clean, simple AHK v2 solution for the G13, so I wrote one using LLMs. It fits my requirements. I cleaned up the macros that I had in the driver and use only AHK2 for this.
What it does:
- Captures all 22 G-keys via raw
WM_INPUT(works without LGS/GHUB) - 3 binding layers switched via G20/G21/G22
- Thumbstick mapped to keys per layer
- Side buttons per layer
- Hold-to-repeat on everything (like a real keyboard)
- Each key can send a string, a keystroke combo, or run arbitrary AHK code
GitHub: https://github.com/dmicsa/logitech-g13-ahk-bind
Requires AutoHotkey v2. Run as Administrator on first launch.
Posted May 1, 2026, 5:50 PM UTC
10