Why is notepad++ blocking my autohotkey shortcuts?

I have a series of keyboard shortcuts defined in my autohotkey script. Currently, none of them work whenever notepad++ has focus.

The script is loaded as usual. The keyboard shortcuts (mostly stuff for moving windows around) work perfectly with any other window, they just don't do anything if the notepad++ window has focus. At the same time, all regular windows shortcuts work fine, even while notepad++ has focus. So it is a specific issue between notepad++ and autohotkey.

The shortcuts I've defined in my script don't conflict with any of notepad's standard keyboard shortcuts. Does anyone know what's happening?

Using Windows 7, notepad++ v5.8.1, autohotkey v1.0.48.03


For me, it was enough to restart Notepad++, so try that first.


I think autohotkey will fail to load the keyboard hook unless you run it as admin. If this is the case your keys won't work when another app (notepad++ or otherwise) has focus.

(I've experienced this behaviour (albeit intermittently) on autohotkey and winamp)


Embarrassingly enough, I restarted my PC and now it's back to normal. I have to learn to do that before asking here...


When running autohotkey with normal user rights while running another application (notepad++) with elevated rights, autohotkey seems to be unable to handle the keyboard input. This makes sense from a rights management perspective…

The solution is to run autohotkey with admin rights -> then the script will be able to handle all input.