AutoHotkey.exe

AutoHotkey Script Interpreter (ahk-exe)

Runtime script interpreter for Windows automationVerify signatures and trusted sources for scriptsHandles hotkeys and automation with minimal overhead
CPU Usage
N/A
Memory
N/A
Location
N/A
Publisher
N/A

Publisher
AutoHotkey
Execution Path
C:\Program Files\AutoHotkey\AutoHotkey.exe
Recommended Action
Ensure scripts are from trusted sources, verify digital signatures, and keep AutoHotkey up to date. If you don’t use AutoHotkey, disable startup entries and uninstall to minimize background activity.

What is AutoHotkey.exe?

ahk-exe is the runtime engine for AutoHotkey scripts. It reads the AutoHotkey language, creates hotkey handlers, GUI components, and automation sequences, and then executes those actions on demand. It can run original .ahk files or compiled executables produced by ahk2exe, enabling portable automation across Windows systems.

ahk-exe interprets and executes the AutoHotkey language at runtime, mapping script commands to Windows API calls, GUI operations, key remaps, and timer-based tasks. It supports threading, hotkeys, and persistent scripts, while operating with standard user privileges for automation tasks.

Is ahk-exe Safe?

ahk-exe, when obtained from the official AutoHotkey project and installed through trusted channels, is a safe runtime for AutoHotkey scripts. The core interpreter itself does not perform network access or elevate privileges by default. The safety concern arises from the scripts you run under ahk-exe: malicious or poorly written scripts can automate harmful actions, access files, or remap inputs. Always validate the source of .ahk scripts, keep your system and antivirus up to date, and run scripts in a controlled environment until you’re confident in their behavior.

Is ahk-exe a Virus?

ahk-exe is not a virus when downloaded from the official AutoHotkey distribution. However, attackers may disguise malicious executables as AutoHotkey files or place malicious scripts alongside the interpreter. If you encounter AutoHotkey.exe in an unexpected folder, without a legitimate source, or if it behaves abnormally (unrequested network activity, new persistent scripts, or elevated privileges), treat it as suspicious and scan with a trusted antivirus. Always verify digital signatures and file origin.

How to Verify Legitimacy

  1. Check File Location: Confirm AutoHotkey.exe is installed under C:\Program Files\AutoHotkey or C:\Program Files (x86)\AutoHotkey and not in a temp or user-writable folder.
  2. Verify Digital Signature: Open file properties, view Digital Signatures, and ensure the signer matches AutoHotkey, Inc. or the official AutoHotkey certificate with a valid timestamp.
  3. Check File Hash: Compute the SHA256 hash of AutoHotkey.exe and compare it to the official hash published by AutoHotkey for your version.
  4. Scan for Malware: Run a full system scan with Windows Defender or a reputable antivirus to rule out tampering or bundled payloads.

Red Flags: Red flags include AutoHotkey.exe located in a user-writable or temporary folder, a missing or invalid digital signature, multiple copies of AutoHotkey.exe running, or elevated network activity after startup without a known script. Inconsistent versioning or unsigned binaries should raise suspicion.

Why is it Running?

Reasons it's running:

Can I Disable or Remove It?

Common Problems

Common Causes & Solutions

Frequently Asked Questions

What is ahk-exe and why is it running on my PC?

ahk-exe is the AutoHotkey script interpreter. It runs when you have one or more AutoHotkey scripts loaded, either directly (.ahk files) or compiled with ahk2exe, to perform automation tasks, hotkeys, or GUI actions.

Is ahk-exe safe to run?

Yes, when obtained from the official AutoHotkey project and used with trusted scripts. The safety risk comes from running untrusted .ahk scripts, which can automate actions that affect files or system settings.

Where is AutoHotkey installed and where is ahk-exe located?

AutoHotkey typically installs in C:\Program Files\AutoHotkey (or C:\Program Files (x86)\AutoHotkey). The interpreter is AutoHotkey.exe or AutoHotkeyU64.exe, and individual scripts run through this runtime.

How can I disable AutoHotkey scripts from starting automatically?

Disable via Task Manager Startup tab, remove the startup script from the Startup folder, or uninstall AutoHotkey if you do not use any scripts. You can also modify scripts to not auto-run at login.

What should I do if I suspect a malicious AutoHotkey script?

Terminate the ahk-exe process, delete the suspicious script, and perform a full malware scan. Verify script sources, signatures, and avoid scripts from untrusted sources.

Can I compile AutoHotkey scripts to standalone executables?

Yes. Use ahk2exe to compile scripts into standalone .exe files that bundle the interpreter. The resulting executable contains the script and the runtime, allowing it to run on machines without AutoHotkey installed.

Related Processes