1. Technology
You can opt-out at any time. Please refer to our privacy policy for contact information.

What is an AHK File?


Question: What is an AHK File?

Did you find an AHK file on your computer and wonder what program should open it? Maybe someone emailed you an AHK file but you're not sure how to use it. Perhaps you tried to open the AHK file but Windows told you that it could not open it.

Before you can open an AHK file (assuming it's even a file format that's intended to be viewed or edited), you'll need to determine what kind of file the .AHK file extension refers to.

Answer: A file with the AHK file extension is an AutoHotkey Script file.

Other types of files may also use the AHK file extension. If you know of any additional file formats that use the .AHK extension, please let me know so I can update this information.

How To Open an AHK File:

Warning: An AHK file is an executable file when AutoHotkey is installed. Take great care when opening AHK files and other executable file formats received via email or downloaded from websites you're not familiar with. See my List of Executable File Extensions for a listing of more file extensions to avoid and why.

AHK files can be opened and edited with the free AutoHotkey program, a scripting tool for automating tasks in Windows.

If you know anything else about AHK files, please let me know so I can update this page.

Tip: Use Notepad or another text editor to open the AHK file. Many files are text-only files meaning no matter the file extension, a text editor may be able to properly display the file's contents. This may or may not be the case with AHK files but it's worth a try.

If you find that an application on your PC does try to open the AHK file but it's the wrong application or if you would rather have another installed program open AHK files, see my How To Change the Default Program for a Specific File Extension guide for making that change in Windows.

How To Convert an AHK File:

There are two main ways to attempt to convert an AHK file to another file type:

The first option involving opening the AHK file in its native program is preferable because it's both easier and will probably result in a more accurate file conversion. Of course if you don't have a program that opens AHK files, a third-party file conversion tool (the second option) could be very useful.

Important: You cannot usually change a file extension (like the AHK file extension) to one that your computer recognizes and expect the newly renamed file to be usable. An actual file format conversion using one of the methods described above must take place in most cases.

Still Having Problems Opening or Using an AHK File?

See Get More Help for information about contacting me on social networks or via email, posting on tech support forums, and more. Let me know what kinds of problems you're having with opening or using the AHK file and I'll see what I can do to help.

©2014 About.com. All rights reserved.