Autohotkey vs AutoIt v3

From WikiVS, the open comparison website
Jump to: navigation, search

Autohotkey and AutoIt v3 are scripting languages for Windows.

AutoIt and Autohotkey were created as open source software, and both are currently freeware. AutoIT is no longer open source.

Before AutoHotKey existed, AutoIT v3 was open source. According to the AHK help file, AutoHotKey adapted source code from AutoIT v3 such as Window Spy and the script compiler. When Autohotkey launched, disagreement happened between the creators of AutoIt and Autohotkey because Autohotkey placed advertisements on Google that directly targeted AutoIt v3 searches and displayed Autohotkey as a "sponsored link" ad for Autohotkey app. This included posts on the AutoIt forum that the Autohotkey creator posted with link to his software. Shortly afterwards, a new version of AutoIt was released as closed source.

Contents

[edit] Purpose

Both languages are interpreted languages. Both allow the developer to create simple Graphical User Interfaces. Both allow the developer to simulate key strokes and mouse clicks, and provide functions for switching from one window to another. They are useful for scripting which requires interaction with more than one application, or for scripting with application that don't have a built-in scripting capability. Both languages allow the copying and deletion of files, and can be used to create and edit text files (including CSV, html, and other specialized types of text files).

[edit] Support and Community

Autohotkey and AutoIt both have help files, forums and online documentation.

AutoHotkey community is known as one of the most helpful community in IT world.

While, during the recent years, AutoIt community try to repel forum support for codes that break intellectual property and have zero tolerance toward helping users with that attitude, it seems that Autohotkey forum community do allow help and support to users with code that break someone's ToS, EULA, captcha, login methodes, antibot rules ...

[edit] Object Oriented Programming

AutoHotkey_L (modern version of AutoHotkey) is object oriented. While old version AutoHotkey Basic is not object oriented.

AutoIt is not object oriented while it do have, Obj/COM management support and reference, and AutoItObject UDF (user defined functions) on support forum.

[edit] Code sample

AU3 (in Func usage)

   $answer = MsgBox(4, "Hi there", "Do you like it?")
   If $answer = 7 Then                                     ;click on button No is 7
   	Return
   Else
   	MsgBox(0, "", "So you like it!!!")
   EndIf

AU3 (in Func usage) Inline simpler code

   If MsgBox(4, "Hi there", "Do you like it?") = 7 Then Return
   MsgBox(0, "", "So you like it!!!")

AHK

   MsgBox, 4, Hi there, Do you like it?
   IfMsgBox, No
   {
      return
   }
   ; Otherwise, the user picked yes.
   MsgBox So you like it!!!

See Also the Following Articles

Personal tools
Namespaces
Variants
Actions
Navigation
Ads
Toolbox