Skip to content

Instantly share code, notes, and snippets.

@JoeGlines
Created February 13, 2026 12:13
Show Gist options
  • Select an option

  • Save JoeGlines/1eef5634402f8e1a401219014552d5dd to your computer and use it in GitHub Desktop.

Select an option

Save JoeGlines/1eef5634402f8e1a401219014552d5dd to your computer and use it in GitHub Desktop.
#Include Triggers.ahk
Triggers.AddHotkey(MyFunction, "Do Something Cool", "^j") ; Ctrl+J default
Triggers.AddMouse(AnotherFunc, "Quick Action", "!MButton") ; Alt+MiddleClick default
Triggers.AddHotstring(ExpandText, "Insert Signature", "btw") ; Hotstring default
Triggers.FinishMenu("My App Preferences", true)
MyFunction(*) {
MsgBox "It worked!"
}
AnotherFunc(*) {
MsgBox "Mouse trigger fired!"
}
ExpandText(*) {
Send "by the way"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment