A nice place to start is this.
#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.
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.
::ftw::Free the whales
For example, the code code above will transform the hotstring ftw into Free the whales after you type it.
To make it work, after having AutoHotKey installed in your machine:
- Create a new file, either with:
- right-click + New + AutoHotKey Script
- Simply create a new text file and have its extension as
.ahk
.
- Type your code inside it.
- Double click your
.ahk
file to run it.
Now, everything should be working.