AutoHotkeyBoilerplate
AutoHotkeyBoilerplate copied to clipboard
An AutoHotkey boilerplate to help jumpstart a script for personal productivity
AutoHotkey Boilerplate
A boilerplate to help jumpstart a script for personal productivity
Goal
- Provide easy access to all the features of AutoHotkey
- Understandable structure for future additions
Installation
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
Usage
- Edit
Settings.ini
as needed - Run
Main.ahk
Structure
.
|-- Main.ahk
|-- Settings.ini
|-- Scripts\
| |-- AppSpecific.ahk
| |-- Functions.ahk
| |-- HotStrings.ahk
| `-- Hotkeys.ahk
|-- Lib\
`-- Util\
Customization
Hotkeys.ahk
Universal shortcuts
; Ctrl+Alt+R to reload entire script
^!r::Reload
Hotstrings.ahk
Auto-expanding Hotstrings are stored here
; Single Line
::btw::by the way
; Multi-Line
::btw::
MsgBox You typed "btw".
Return
Functions.ahk
Re-usable functions, automatically loaded by Main.ahk
Add(x, y)
{
return x + y
}
AppSpecific.ahk
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