How to Compile an AutoHotkey Script

Written by andy carr
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Compile an AutoHotkey Script
Automate regular Windows tasks with AutoHotkey. (Hemera Technologies/ Images)

AutoHotkey is a macro language program written to run tasks automatically in Windows. It simulates mouse movements and key strokes, remaps keys and replicates numerous Windows management functions. Scripts can be compiled into EXE format, so they can be run on other Windows computers, providing a portable way of running programs without having to recode the script. AutoHotkey is a macro language in its own right, and is not related to other computer languages such as Visual Basic. It is a free and open source utility program.

Skill level:

Other People Are Reading

Things you need

  • AHK file suffix AutoHotkey scripts

Show MoreHide


  1. 1

    Navigate to the AutoHotkey file you would like to compile in Windows. It will have an ".ahk" suffix.

  2. 2

    Right click on the file. The Explorer context menu will have a "compile script" option. Click on the option to compile the script. This generates an ".exe" version of the AutoHotkey script with the same name.

  3. 3

    Run the exe file by double-clicking on it. The script will now run as an exe file.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.