neonForge

artificer3120

hotkeys.ahk — Code Audit

auditor: jellia (mrFixit)  |  2026-05-05  |  QB #643

Overview

hotkeys.ahk is the global hotkey script for Rocky. 86 lines of AHK v2, auto-launched from the Windows Startup folder. localMesh's AHKWatchdog monitors the process and relaunches if it crashes (30s check interval).

A companion script transparent-notes-launcher.ahk lives in the same Startup folder — it's a standalone duplicate of one of the bindings (see Gremlins).

Keybinding Registry

HotkeyKeysActionTarget
#nWin+NToggle Notepad++ / new tab if activenotepad++.exe
#mWin+MPaste (sends Ctrl+V)system clipboard
+z,xShift+Z, XSwap monitor arrangementcrossEyes batch
PgUpPageUpToggle Transparent Notes Proforge5/transparent-notes-pro
PgDnPageDownNew timestamped note.notesplusplus/new_note.py
^!kCtrl+Alt+KToggle/launch localMeshHTTP POST :8801/toggle
HomeHomeToggle/launch PingerlocalMesh.py
#jWin+JToggle Obsidian.soundings vault

Gremlins

1. Duplicate PgUp Binding medium

transparent-notes-launcher.ahk binds PageUp to the same Transparent Notes toggle. Two competing handlers. The standalone includes #SingleInstance Force that the main script doesn't.

Fix: Delete transparent-notes-launcher.ahk. Its binding is fully covered by hotkeys.ahk.
2. Missing #Requires / #SingleInstance low

Script uses AHK v2 syntax but doesn't declare #Requires AutoHotkey v2.0. Could be opened by wrong interpreter. Missing #SingleInstance Force means duplicates possible if watchdog relaunches while a zombie lives.

Fix: Add both directives to top of file.
3. Win+M Overrides Minimize-All low

Win+M natively minimizes all windows in Windows 11. This binding overrides it to paste. No comment explains why.

Question: Is this intentional?
4. PgUp / PgDn Steal Navigation Keys low

PageUp and PageDown are standard scroll keys in terminals, browsers, and editors. These bindings steal them globally — scrolling breaks everywhere.

Consider: Use modifier combos (Win+PgUp, Ctrl+PgUp) instead.
5. Home Key Stolen Globally medium

Home is a constant-use cursor key (jump to start of line). This binding steals it globally for pinger toggle. Breaks text editing in every app.

Consider: Rebind to Win+Home or Ctrl+Alt+Home.
6. Shift+Z Chord 400ms Delay low

InputHook waits 400ms for the second key. Any word with capital Z gets a perceivable lag. Known trade-off with chord bindings.

No action needed — acceptable trade-off.
7. Ctrl+Alt+K Over-Eager Fallback low

The try/catch catches all WinHTTP errors and falls back to launching localMesh. Could trigger redundant launch attempts (lockfile prevents damage).

No action needed — lockfile is the safety net.
8. Stale Header cosmetic

"managed by grancy3120" is a previous agent session handle. No version pragma, no AHK version requirement declared.

Fix: Update header with current info.

Summary

#GremlinSeverityFix
1Duplicate PgUp bindingMediumDelete transparent-notes-launcher.ahk
2Missing #Requires / #SingleInstanceLowAdd directives
3Win+M overrides minimize-allLowConfirm intent or rebind
4PgUp/PgDn steal nav keysLowConsider modifier combos
5Home key stolen globallyMediumConsider Win+Home
6Shift+Z chord delayLowKnown trade-off
7Ctrl+Alt+K over-eager fallbackLowNo action needed
8Stale headerCosmeticUpdate header