Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 5 down vote accepted

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

share|improve this answer

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

share|improve this answer

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)

share|improve this answer
autohotkey doesn't have to run with admin rights to work properly. It seems rather that some applications need to be restarted to take into account the changes made into autohotkey. – Nicolas Jul 8 '14 at 20:44

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.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .