// troubleshooting guide · autohotkey
AutoHotkey Script Slow or Laggy Under High CPU
- Status
- Workaround available
- platforms:
- Windows
- updated:
- November 15, 2026
- reports:
- 2
- Method
- how we research
RUNBOOK · autohotkey/script-slow-laggy2 FIXES
// quick answer
Hotkeys can lag when the PC is busy. Raise the script's process priority and trim slow loops.
Most likely fix: Raise priority
How to fix it
// try these in order, the most common fix is first
FIX 1Raise priority
- 01Add `ProcessSetPriority "High"` near the top of the script
- 02Reload the script
Did this fix it?FIX 2Reduce work in hotkeys
- 01Keep hotkey bodies short
- 02Use SetTimer for long tasks
- 03Lower Sleep values where safe
Did this fix it?
Symptoms
Hotkeys, clicks or sends respond late while CPU is high.
Why it happens
- C-01Script runs at normal priority competing with heavy apps
- C-02Long loops or sleeps blocking the hotkey thread
- C-03Slow window-matching settings
// this guide also covers
- autohotkey slow
- autohotkey lag
- autohotkey delay
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 usThe same problem in other apps
All slow, laggy or resource-hungry guides →
PowerToys High Memory and CPU Usage (Microsoft PowerToys)
Alfred Slow to Open or Lagging (Alfred)
Raycast High Memory and CPU Usage (Raycast)
Why Is TextExpander So Slow to Expand? (TextExpander)
Other AutoHotkey errors
- AutoHotkey v1 Script Not Working in v2
- AutoHotkey Error: This Line Does Not Contain a Recognized Action
- AutoHotkey Hotkeys Not Working in Admin Windows
- AutoHotkey Flagged as Virus by Antivirus
- AutoHotkey Anti-Cheat Errors and Bans in Games
- AutoHotkey Send and Click Not Working in Games
- AutoHotkey Modifier Key Stuck (Ctrl, Alt, Shift, Win)
- AutoHotkey Hotkeys Not Working on Non-English Keyboard Layouts