I’m writing an application that will sit in the Windows service tray and wait for a user to press the super+left ctrl key to activate it. I’m not quite sure how to do that. Can anyone clue me in? How can my program be informed when a user hits a specific key combination even if the program doesn’t have focus?
I think I’ve solved it myself but, if anyone has any comments, please feel free. As I understand it, I’m going to have to use the Windows API to do this. Specifically, I’m going to need the SetWindowsHookEx() call described here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx
There is an example of using this hook function in the Windows Functionality Suite ( often mentioned in this forum )
This thread is a recent reference…