Once you have AutoHotkey installed, you will probably want it to do stuff. AutoHotkey is not magic, we all wish it was, but it is not. So we will need to tell it what to do. This process is called "Scripting".
So now that you have created a script, we need to add stuff into the file. For a list of all built-in commands, function and variables, see section 5. Here is a very basic script containing a Hotkey which types text using the Send command when the hotkey is pressed.
^j::
Send, My First Script
Return
We will get more in-depth later on. Until then, here's an explanation of the above code.
^j::
is the Hotkey. ^
means CTRL
, j
is the letter j. Anything to the left of ::
are the keys you need to press.Send, My First Script
is how you SEND
keystrokes. SEND
is the command, anything after the comma (,) will be typed.Return
. Return will become your best friend. It literally STOPS code from going any further, to the lines below. This will prevent many issues when you start having a lot of stuff in your scripts.