Skip to content

Instantly share code, notes, and snippets.

@Jaid
Last active April 6, 2021 11:49
Show Gist options
  • Select an option

  • Save Jaid/10c9fc5a894448d108eb600a55eee404 to your computer and use it in GitHub Desktop.

Select an option

Save Jaid/10c9fc5a894448d108eb600a55eee404 to your computer and use it in GitHub Desktop.
My personal boilerplate for building complex hotkey scripts in AutoHotkey v2
#Warn All, StdOut
#SingleInstance Prompt
#Include ../lib/jaid.ahk2
main() {
; TODO: Write business logic
}
; TODO: Change key
#e:: {
runMain("hotkey", main)
}
if IsSet(&A_DebuggerName) {
runMain("debug script", main)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment