How can I make HotHotKey intercept hot keys before other programs?

I have a fairly simple autohotkey script, which starts and stops music playback when I press one of the buttons on my XButtons mouse: XButton1::Send {Media_Play_Pause}. The program works fine, and I have no problems with it. However, when I use Notepad ++, it intercepts the mouse button hotkey before AutoHotKey does and switches tabs. This makes me switch from Notepad ++ when I want to use this hotkey.

Is there any way to change the order in which programs intercept hot keys so that AutoHotKey always gets the first dib on any keystrokes or mouse buttons entered?

Or, is there a parameter that I can change in Notepadd ++ to disable XButton functionality. I looked through all the settings, but I still could not stop them.

+3
source share
3 answers

Good. I think I managed to figure it out. The problem was that I was running Notepad ++ as an administrator, so I think it got a higher priority in choosing hotkeys. Running AHK as an administrator also solved the problem.

+2
source

In notepad ++ you can go to settings> mapper shortcut ...

If your X buttons mimic keystrokes, you may need to remove the equivalent key combination.

0
source

RDP.

, RDP , , script .

I solved this problem by checking the script every 10 seconds if the active window is an RDP window, and if there is one, reloading the script.

If you have variables that you need to save, you can save them in an INI file or global variables (any solution will slow down your script a bit).

This is not an ideal solution because your keyboard shortcuts will not respond immediately if you just opened Notepad ++.

0
source

All Articles