A boilerplate to help jumpstart a script for personal productivity
- Provide easy access to all the features of AutoHotkey
- Understandable structure for future additions
Prerequisite: Install AutoHotkey from ahkscript.org
Options:
git clone https://github.com/denolfe/AutoHotkeyBoilerplate.git
- Download the repo and unzip
- Fork to your own repo, then clone or download
- Edit
Settings.ini
as needed - Run
Main.ahk
.
|-- Main.ahk
|-- Settings.ini
|-- Scripts\
| |-- AppSpecific.ahk
| |-- Functions.ahk
| |-- HotStrings.ahk
| `-- Hotkeys.ahk
|-- Lib\
`-- Util\
Universal shortcuts
; Ctrl+Alt+R to reload entire script
^!r::Reload
Auto-expanding Hotstrings are stored here
; Single Line
::btw::by the way
; Multi-Line
::btw::
MsgBox You typed "btw".
Return
Re-usable functions, automatically loaded by Main.ahk
Add(x, y)
{
return x + y
}
This file is organizing application specific shortcut or hotstrings. This is achieved using #If or #IfWin directives
; Control+Click selection in Notepad++ only
#IfWinActive ahk_class Notepad++
^LButton::
Send {LButton 2}
Return
#IfWinActive