Thoughts?-kunkel321
From a professional point of view where really all is listed reliable =
Impossible.
I am just aware about
HotKeyList what is pretty useful to find out current used to know if your dream combination is free.
There are several way how "Hot Keys" may get triggered, to name 2 where there is a possibility to get an link for an executable is
- a) the registry (again several locations)
- b) the desktop (splitted into file shortcuts and registry links), to get them you would need to parse every shortcut from the desktop and the startmenu and the taskbar
For both of them an accurate success rate is given (after checking if target/destination still exists) to get what you was asking for, HotKey + Executable.
Them I personal call System hooks.
But Windows wouldnt be Windows if there are not more possibilies
- c) on the fly hotkeys, them you cant figure out plus there is no relation to any executable stored.
What the heck he talk about?
If you ever played on Windows a game and cheated with a Trainer (a memory resident tool that wait for a special keypress combination) them you can't figure out and those type of hotkeys are very wide spread among many kind of application since they are mostest simple to handle.
- d) application specific hotkeys, they are just triggered while the application has got the focus, mostest easy example "ALT+F4" = "Terminate Application", them you only can order to an application by doing a lot of checks to really determine if "Alt+F4" comes from the focused app or from somewhere else
As you can see, your needed task is not easy to put into code and even more hard to make it halfway reliable.
Sorry that I am more talking pessimistic than optimistic but good luck on that project, you got all my love for it!