Skip to content

An AutoHotkey boilerplate to help jumpstart a script for personal productivity

Notifications You must be signed in to change notification settings

denolfe/AutoHotkeyBoilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  1. Edit Settings.ini as needed
  2. 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

Hotkey Docs

Hotstrings.ahk

Auto-expanding Hotstrings are stored here

; Single Line
::btw::by the way

; Multi-Line
::btw::
    MsgBox You typed "btw".
Return

Hotstrings Docs

Functions.ahk

Re-usable functions, automatically loaded by Main.ahk

 Add(x, y)
 {
     return x + y
 }

Function Docs

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

About

An AutoHotkey boilerplate to help jumpstart a script for personal productivity

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published