Quick reference
Everyday operations
| Task | Method |
|---|---|
| Start | Run diatom.exe in the complete runtime folder |
| Reload | Save changes, then run diatom.exe again |
| Exit | Starter Ctrl+Alt+F12, or Task Manager |
| Export activity | Starter Ctrl+Alt+F11 |
| Edit commands | Use the actual src_dir directory |
| Update | Exit, back up, verify a new folder, merge personal settings |
Command essentials
| Attribute | Meaning |
|---|---|
| type=f | Function body receiving this |
| type=c | Call fn with ps |
| type=e / j | Complete script in an independent / Job process |
| alias | Additional command names |
| key=^!F9 | Ctrl+Alt+F9, through def_hotkey |
| read=1 | Reread for supported independent debugging |
| ban=1 | Skip loading until the attribute is removed |
| dog=1 / -1 | Every launch / boot launch |
| task=em:15 | Fifteen-minute period, positive periods only |
| pc / pc_bl | Machine filters |
Independent headers
AHK uses ;?, Python and PowerShell #?, JavaScript //?, and Lua --?. Separate attributes with commas. Command lists support multiline code in triple quotes. Global files and command lists have different parser rules.
Context and diagnosis
Function bodies read this. Complete scripts read A_Args. Mouse calls commonly include id, hwnd, title, exe, class, dx/dy and ux/uy. Other triggers have different fields.
If shortcuts work but gestures fail, check recognition and matching. If the gesture name is correct but the action is wrong, check scopes and duplicate definitions. If code remains old, check reload and interpreter reuse.