// troubleshooting guide · autohotkey

AutoHotkey v1 Script Not Working in v2

Status
Workaround available
platforms:
Windows
updated:
November 15, 2026
reports:
4
Method
how we research
Share

RUNBOOK · autohotkey/v1-script-not-working-v23 FIXES

// quick answer

v2 is not backward compatible, so v1 scripts fail or do nothing. Install v1 for old scripts, or port the syntax and add #Requires so the right version runs.

Most likely fix: Run it with v1 instead

How to fix it

// try these in order, the most common fix is first

  1. FIX 1Run it with v1 instead

    1. 01Install AutoHotkey v1.1 alongside v2 (they coexist)
    2. 02Add `#Requires AutoHotkey v1.1` at the top of the old script
    3. 03Launch it again and let the launcher choose v1
    Did this fix it?
  2. FIX 2Port the script to v2

    1. 01Change `x = 5` to `x := 5`
    2. 02Change `Sleep, 1000` to `Sleep 1000`
    3. 03Replace `MsgBox, Hello %name%` with `MsgBox "Hello " name`
    4. 04Wrap hotkey bodies in `{ }` instead of ending with return
    5. 05Replace ErrorLevel checks with try/catch
    Did this fix it?
  3. FIX 3Try the community converter

    1. 01Run the community v1-to-v2 converter on a small script first
    2. 02Fix leftover errors by hand, since it has known gaps
    3. 03Add `#Requires AutoHotkey v2.0` to the converted file
    Did this fix it?

Symptoms

Double-clicking an old .ahk shows a load error, 'Function calls require a space or (', or the script does nothing.

Why it happens

  • C-01Script written for v1 is being run by the v2 interpreter
  • C-02v1 syntax such as `=` assignment, `%var%` and comma commands
  • C-03Hotkeys ending with return instead of braces
  • C-04Wrong version chosen by the launcher

// this guide also covers

  • autohotkey v1 script not working v2
  • autohotkey v1 to v2
  • autohotkey script not running

Still not working?

If AutoHotkey keeps failing, you're not alone. See every AutoHotkey problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us

Watch AutoHotkey Get an email when its price changes, it has an outage, or we publish a new fix. No spam.

Fixed it? Share this guide

Other AutoHotkey errors

All 10 AutoHotkey errors and fixes →