-
Notifications
You must be signed in to change notification settings - Fork 0
🤯 Practices Tips
Aluerie edited this page May 15, 2026
·
2 revisions
I rarely code with .ahk so here are some notes and reminders for future me.
| Name | Link |
|---|---|
| Hotkeys | autohotkey.com/docs/v2/Hotkeys.htm |
| KeyList | https://www.autohotkey.com/docs/v2/KeyList.htm |
# Windows
! Alt
^ Ctrl
+ Shift
~ Do not lose original keyI'm really not sure how to remember which is which 🤔.
-
Enumeration in AHK starts from 1 so
array[1]fetches the first element (unlike other languages where it would be array[0]) -
Do not use
Q::ESCwhereQis a Capital letterProbably, one of the most frequent mistakes/typos I do:
Q::ESC ; Incorrect, it interprets capital "Q" like we mean "Shift+q" q::ESC ; Correct.
-
LWinkey memes. For some reason, doing things likeLWin & S::Xor<#Tab::Xdisables functionalty ofLWin::Y. Honourable mention:In past, we used this code to solve the screenshot problem in Dota 2.
LWin & S:: { ; LShift -> LWin -> S if Getkeystate("LShift", "p") { Run("ms-screenclip:") } else { Send "{AppsKey} & {S}" } } LShift & S:: { ; LWin -> LShift -> S if Getkeystate("LWin", "p") { Run("ms-screenclip:") } else { Send "{LShift} & {S}" } }
However, as noted it breaks
LWin::AppsKey, so therefore do not do that^; find something simple, like a different keybind^+P::Run("ms-screenclip:")