Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denolfe/autohotkeyboilerplate
An AutoHotkey boilerplate to help jumpstart a script for personal productivity
https://github.com/denolfe/autohotkeyboilerplate
autocorrect autohotkey boilerplate
Last synced: about 2 months ago
JSON representation
An AutoHotkey boilerplate to help jumpstart a script for personal productivity
- Host: GitHub
- URL: https://github.com/denolfe/autohotkeyboilerplate
- Owner: denolfe
- Created: 2015-07-02T15:41:38.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-02T19:29:24.000Z (almost 4 years ago)
- Last Synced: 2024-11-13T13:37:41.953Z (3 months ago)
- Topics: autocorrect, autohotkey, boilerplate
- Language: AutoHotkey
- Size: 58.6 KB
- Stars: 52
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](http://ahkscript.org/) from [ahkscript.org](http://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
```ahk
; Ctrl+Alt+R to reload entire script
^!r::Reload
```[Hotkey Docs](http://ahkscript.org/docs/Hotkeys.htm)
### Hotstrings.ahk
Auto-expanding Hotstrings are stored here
```ahk
; Single Line
::btw::by the way; Multi-Line
::btw::
MsgBox You typed "btw".
Return
```[Hotstrings Docs](http://ahkscript.org/docs/Hotstrings.htm)
### Functions.ahk
Re-usable functions, automatically loaded by Main.ahk
```ahk
Add(x, y)
{
return x + y
}
```[Function Docs](http://ahkscript.org/docs/Functions.htm)
### AppSpecific.ahk
This file is organizing application specific shortcut or hotstrings. This is achieved using [#If](https://www.autohotkey.com/docs/commands/_If.htm) or [#IfWin directives](https://www.autohotkey.com/docs/commands/_IfWinActive.htm)
```ahk
; Control+Click selection in Notepad++ only
#IfWinActive ahk_class Notepad++
^LButton::
Send {LButton 2}
Return
#IfWinActive
```