Article: For example, if you want to assign a command that does something when you press the key combination of Ctrl+E, you would type ^e. Each lowercase letter represents its own key, while special keys have their own symbols: + = Shift ^ = Ctrl ! = Alt # = Win (Windows key) Click here for a complete list of key commands. Any key or key combination you typed needs to be followed by ::. So in our example, the first line of our code would look like: ^e:: You'll type the command for what will happen with then hotkey is pressed on the line below the two colons. You can indent the line by pressing "Tab" or by typing several spaces You don't have to indent the command line but it will keep your code organized and easy to read if you have errors later. The Send command will automatically type a message when a Hotkey is triggered. Anything you type after the comma will be typed automatically when you press the assigned Hotkey. For our example, if you wanted to include the message "wikiHow is awesome!" your code would look like: ^e:: Send, wikiHow is awesome{!} Special characters, like the exclamation mark, must be enclosed in braces { } so it isn't confused with the symbol for the "Alt" key. The Return command denotes the end of a command and stops the code from going to the lines below. Your finished code should look like: ^e:: Send, wikiHow is awesome{!} Return Click "File" in the menu bar at the top of Notepad and click "Save" in the drop-down menu. This will save the code you've added to the script file. You can close Notepad once your work has been saved. Double-click the script file on your desktop to run the script. You'll see a green AutoHotkey icon appear in your system tray on the bottom-right of your screen. This indicates that an AutoHotkey script is active. Open a new word processing app or any app you can type text and press your Hotkey combo. In our example, if you press Ctrl+E you'll see the text "wikiHow is awesome!" instantly appear.
What is a summary of what this article is about?
On a new line, type the code for the keyboard shortcut you want to assign. Type two colons after the keys you assigned. Press Enter to go to the next line and press Tab to indent. Type Send, and then type a message. Press Enter to go the next line and type Return. Save your script. Run the script. Test your Hotkey.