AutoHotkey Vs. AutoIt Free Windows Scripting Languages

While Both AutoHotkey and AutoIt Are Powerful Scripting Languages, AutoHotkey Has the Advantage of Simple, Built-In Support for Hotkeys and Hotstrings—Making It the Choice for People Who “Don’t Want to Learn That Much Programming!”

When planning to automate Windows computer tasks, people are faced with a decision between the AutoHotkey and AutoIt scripting languages. Since both come from the same roots, you might expect that many things you learn in one of the free programs would apply to both. If that were true, then there would be no decision.

*          *          *

New to AutoHotkey? See “Introduction to AutoHotkey: A Review and Guide for Beginners.”

*          *          *

 You could start with one and switch at anytime when it seemed beneficial. However, that is not the case. While both AutoHotkey and AutoIt do most of the same things, the syntax (language structure) of each is very different.

AutoIt is the father of both programs, but they took divergent paths when an AutoIt contributor wanted to add easier hotkey and hotstring support to the language. The controllers of AutoIt wanted nothing to do with the suggested new features forcing the upstart off in another direction. The name of the new branch, AutoHotkey, better represented the new features in the modified version of the then Open Source AutoIt. At that time the language structure was very similar. Since then AutoIt has almost completely changed the syntax of its latest versions of the Windows automating program. Now, AutoIt primarily uses functions in its scripting code while AutoHotkey continues to use the original command structure. (There has been an effort underway for a number of years to update AutoHotkey — Version 2.0 beta — but it has yet to gain much traction.) Some people complain that the AutoHotkey syntax is archaic, but I have a feeling that it is more a matter of taste, than a real disadvantage.

ComputorEdge AutoHotkey E-BooksOthers say that AutoIt has many more capabilities than AutoHotkey. That may have been the case at one time, but since the development of AutoHotkey_L (now the primary AutoHotkey download) there is very little possible in AutoIt which is not also available in AutoHotkey. In fact the number one reason people choose AutoHotkey over AutoIt is for the built-in hotkey and hotstring (text expansion) features which are more difficult to implement with AutoIt. Those features are so simple in AutoHotkey that any beginner can have them working in matter of minutes. Even experienced programmers who have switched from AutoHotkey to AutoIt (and love it) continue to use these “hot” techniques in AutoHotkey because there is no easy solution in AutoIt.

Update December 17, 2015: After completing a series of blogs on AutoHotkey Hotstrings, I’ve come to realize that there are many people who might want to use AutoHotkey just for the easy built-in Hotstring structure. If you’re a writer, student, or anyone else who does a lot of word processing, then you’ll be amazed at the AutoCorrect and text expansion/replacement capabilities of AutoHotkey. There are many cool text tricks which can be implemented with Hotstrings. This may apply equally to the built-in Hotkey structures in AutoHotkey.

If you’re an experienced programmer and primarily want to automate Windows programs, then you may prefer AutoIt — many do. However, if you’ve never before taken up the challenge of script writing or mostly need the text expansion, such as AutoCorrect, or hotkeys for running apps and automating, then AutoHotkey may be the ticket for you.

If you’re not sure which you would prefer, then why not try them both? They are both free! You may find that one is more conducive than the other to the way you think. However, if you’re inexperienced, you will find that each has it own unique learning curve.

For a couple of examples of the differences in the code between AutoHotkey and AutoIt, see this “Comparison and Review of the Free Windows Scripting Languages.”

3 thoughts on “AutoHotkey Vs. AutoIt Free Windows Scripting Languages

  1. AutoHotkey has multiple obfuscation tools. In addition, AutoHotkey users can modify those tools to create their own variations.
    (AHK Dynamic Obfuscator L – Protect your code by Obfuscation)
    (AHK source code Encryptor)

    But do keep in mind that scripting languages or obfuscation doesn’t offer the same level of security or protection as compiling code to native binaries.


  2. Many of these AutoIt fans don’t know that the original AutoHotkey was forked and upgraded with multiple capabilities. There is AutoHotkey_L and AutoHotkey_H, which are both highly compatible with each other.

    1) AutoHotkey_L (the official version used now).

    2) AutoHotkey_H is a fork with even more features and a superset of the official version.

    AutoHotkey_H has encryption protection built-in to protect source code and is free. This version of AutoHotkey is arguably much more powerful and feature rich than AutoIt. Users of that fork can modify and compile it (open-source vs closed-source). Which is what the above poster might have been referring to.

    The Pelock obfuscator is payware and the AutoIt interpreter is closed-source, which also inhibits it’s development and to inspect if there are any backdoors. All of which can cause it’s AutoIt users potential problems.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s