Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

up vote 0 down vote accepted

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 at 20:44

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

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.