microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
111.68k stars 6.57k forks source link

Problem with shortcuts interacting with windows hooks #35917

Open x-464 opened 1 week ago

x-464 commented 1 week ago

Description of the new feature / enhancement

I have a custom script written in C++ to change the default alt + space that powertoys run uses to be the win key, so I don't have to use the start menu. Because of this I have to have it check for other keys being pressed as well as this would usually indicate a shortcut that I don't want to intefere with. Shortcuts like shift + win + s (snipping tool screenshot shortcut) work fine, so I'm 90% sure this isn't a problem on my end. Shortcuts like shift + win + c (powertoys colour picker) or shift + win + t (powertoys text extractor) no longer works.

The script uses hooks to intercept keyboard presses so I assume powertoys just runs at level my script can't access? All of this is to say the best fix for this would be for you guys to allow the binding of run to the windows key, which is probably something you get asked quite a bit but would be amazing if you did. I know a few people who have wanted to just use run instead of the start menu. Having a toggle within settings to show the taskbar on run being showed would also be amazing but not necessary.

Scenario when this would be used?

Just generally for the betterment of effieciency, run is currently leagues above the start menu's search features and I have no need for the rest of the start menu, so run is just a cleaner, probably more efficient, solution to the start menu.

Supporting information

The script can be found here: https://github.com/x-464/StartMenuToPTRun