I need to have some kind of keyboard listener that will listen for certain SINGLE keypresses in Windows, regardless of whether the compiled application is in focus, minimized, etc.
For example, with the compiled application running, say someone switches to Word or Excel and starts working. If a certain key (say, F4) is pressed, I need my application to trigger something. Maybe opening a hidden form, or playing a trigger sound, etc.
What I need help understanding is how to get the listener to remain active OUTSIDE of the complied application.
I did a ton of Googling and found a reference to Keyboard Hooks. I found a lot of material that discusses small compartments of information about Hooks, VB methods that don't use hooks, Windows API references, etc., but nothing that I can process to form some kind of sample code or example to try out. There is nothing cohesive enough to get me started.
Can anyone help me here? I just need some chunk of code to start me down the right path with this. Any explanation would be hugely appreciated! THANK YOU IN ADVANCE!