microsoft / PowerToys

Windows system utilities to maximize productivity
MIT License
109.66k stars 6.46k forks source link

List of all registered hotkey Shortcuts #18826

Open alederono opened 2 years ago

alederono commented 2 years ago

Description of the new feature / enhancement

I remember having seen a Windows Tool to list all the global Shortcuts. Example: If I created a file link in Explorer and assigned a Shortcut to it, that Shortcut got listed in the overview.

I can't find this feature in Windows 10 itself nor do I find a tool.

When noticing the existence of Keyboard Manager and the Shortcut overview in Power Toys, I assumed one of those would provide this feature. Unfortunately, none of them does.

Feature request: Whenever I would think of setting up a shortcut in my system using e.g. AutoIt, PowerToys, File Links, etc... I want to pull up PowerToys, check the list of globally registered hot keys/shortcuts to see

  1. what's registered
  2. for which purpose.

Scenario when this would be used?

Whenever I would think of setting up a shortcut in my system using e.g. AutoIt, PowerToys, File Links, etc... I want to pull up PowerToys, check the list of globally registered hot keys/shortcuts to see what's registered for which purpose.

Supporting information

No response

Aaron-Junker commented 2 years ago

I think you used Nirsoft's HotkeyList, but it does not work for Windows 8+

lncubus commented 2 years ago

I think you used Nirsoft's HotkeyList, but it does not work for Windows 8+

Actually, it works on my machine.

alederono commented 2 years ago

I think you used Nirsoft's HotkeyList, but it does not work for Windows 8+

I think you're right - that's the one I had in mind. This is already helping. The website doesn't state compatibility for the newer Windows Versions. Not sure why. Maybe the result's aren't complete due to increased complexity.

However, that's the first puzzle piece. The next would be listing the registered listeners / origins of HotKey definitions to understand which of them are needed / may be re-assignable / what is likely to happen when pressing them (I know you can't exactly tell because the app(s) listening to those key presses would react in a not-necessarily predeterminable way).

lncubus commented 2 years ago

@alederono , unfortunately there are no good API for this. According to this thread How can I determine which process owns a hotkey in Windows? the only way to find out which process handles the combination is to trigger it. There's a project to track a hotkey called Hotkey Detective which worked for me. Also OpenArk was mentioned but I haven't tried it.