

How to find the help file on your computer In section 5 we'll talk about why it doesn't work as you might expect and what you can do instead. When you are making your code, you might have the urge to put several commands on the same line or inside of each other, don't. Go get some reward snacks then return to reading the rest of this tutorial.įor a video instruction, watch Install and Hello World on YouTube. Hip Hip Hooray! Your first script is done.Open notepad or (anything you can type in) and press Ctrl and J. Double-click the file/icon in the desktop to run it.This will prevent many issues when you start having a lot of stuff in your scripts.

It literally stops code from going any further, to the lines below. Send is the command, anything after the comma (,) will be typed. The second line: Send, My First Script is how you send keystrokes.Anything to the left of :: are the keys you need to press. Until then, here's an explanation of the above code: Here is a very basic script containing a hotkey which types text using the Send command when the hotkey is pressed: ^j:: For a list of all built-in commands, function and variables, see section 5. So now that you have created a script, we need to add stuff into the file. A window should have popped up, probably Notepad.Find the newly created file on your desktop and right-click it.Click "AutoHotkey Script" inside the "New" menu.AutoHotkey is not magic, we all wish it was, but it is not. Once you have AutoHotkey installed, you will probably want it to do stuff.

