First AutoHotkey Script

With a little search, you’ll find a lot of script examples on the Internet but what most of them won’t tell you is how to create and use them.

Well… lets start with the basics then.

Once you have downloaded and installed AutoHotkey, just follow the given steps:

  1. Open any folder and pull down the File Menu. Choose New -> AutoHotKey Script.
  2. Type a name for the file, and make sure that the file extension is .ahk
  3. Now, right click on this file and choose the option Edit Script.  The file that will open now will already have some text †. To use any script, just add the script in a new blank line.
  4. Save and Close the File.

That’s it. Simple, right??

Now to try out this script, all you need to do is double click on your .ahk file. You’ll now see a AutoHotKey icon in your system tray which means that your script has been launched.

You can test the script by using whatever hotkey you had specified in the script. To exit or edit the script again, right-click on the tray icon and choose the appropriate option.

Meghna

The text contained is generally information about your AutoHotKey software version, and some standard commands. You can remove this text completely or keep it. These commands are not required to run your script, but they do speed up your script a little.

1 thought on “First AutoHotkey Script”

Leave a Comment