https://github.com/psygo/autohotkeys
My autohotkeys
https://github.com/psygo/autohotkeys
autohotkey keyboard shortcut
Last synced: 5 months ago
JSON representation
My autohotkeys
- Host: GitHub
- URL: https://github.com/psygo/autohotkeys
- Owner: psygo
- Created: 2020-08-07T20:37:54.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-23T12:28:48.000Z (over 5 years ago)
- Last Synced: 2025-05-27T10:14:52.717Z (about 1 year ago)
- Topics: autohotkey, keyboard, shortcut
- Language: AutoHotkey
- Homepage: https://fanaro.io
- Size: 1000 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AutoHotKey
A nice place to start is [this][tutorial_send].
[tutorial_send]: https://www.autohotkey.com/docs/Tutorial.htm#Send
## 1. First script
### 1.1. Simple Hotkey
```autohotkey
#j::
Send, nuclear launch codes
return
```
The `#` means the Windows key. The `^` would mean the Ctrl key. So, in the example above, we would have Windows + j *typing* the text *nuclear launch test codes*. The `return` on the third line is necessary to avoid syntactical problems in general.
### 1.2. Simple Hotstring
When you press a hotkey combination, after the release, something will happen. The difference to a hotstring is that something will happen after you type the string, which might even get completely transformed into another string.
```autohotkey
::ftw::Free the whales
```
For example, the code code above will transform the hotstring *ftw* into *Free the whales* after you type it.
## 2. Making it work
To make it work, after having AutoHotKey installed in your machine:
1. Create a new file, either with:
- right-click + New + AutoHotKey Script
- Simply create a new text file and have its extension as `.ahk`.
1. Type your code inside it.
1. Double click your `.ahk` file to run it.
Now, everything should be working.