// troubleshooting guide · autohotkey
AutoHotkey Hotkeys Not Working in Admin Windows
- Status
- Workaround available
- platforms:
- Windows
- updated:
- November 15, 2026
- reports:
- 4
- Method
- how we research
RUNBOOK · autohotkey/hotkeys-not-working-admin-windows3 FIXES
// quick answer
Windows UAC blocks normal scripts from elevated windows. Run the script with UI Access (best) or as administrator.
Most likely fix: Run the script with UI Access
How to fix it
// try these in order, the most common fix is first
FIX 1Run the script with UI Access
- 01Install AutoHotkey under C:\Program Files (use the installer, not a portable copy)
- 02Right-click the script and choose Run with UI access
- 03Or use `Run '*UIAccess "Your script.ahk"'`
Did this fix it?FIX 2Run the script as administrator
- 01Right-click the .ahk file and choose Run as administrator
- 02Note that programs the script launches also run elevated
- 03Use Task Scheduler with highest privileges to avoid UAC prompts at startup
Did this fix it?FIX 3Check for conflicting tools
- 01Close launchers or key tools that may grab keys
- 02Retest with only your script running
Did this fix it?
Symptoms
Hotkeys, hotstrings and Send work everywhere except Task Manager, installers or apps run as administrator.
Why it happens
- C-01UAC/UIPI prevents non-elevated programs from hooking or automating elevated windows
- C-02Target app started with Run as administrator
- C-03Another launcher or tool blocking key events while elevated
// this guide also covers
- autohotkey not working admin
- autohotkey uac
- autohotkey ui access
- autohotkey task manager hotkey
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 usOther AutoHotkey errors
- AutoHotkey v1 Script Not Working in v2
- AutoHotkey Error: This Line Does Not Contain a Recognized Action
- 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
- AutoHotkey Script Slow or Laggy Under High CPU