Steve Loughran wrote:
I have seen several programs that have installed some kind of "hotkey"
event handler that the controlling program is sent when triggered, even
if the window is minimized, or in the system tray, or does not currently
have keyboard/system focus. All the keyboard related items I can find in
the Win32::GUI docs only appear to work when the program's window is active.
How have these other programs done this? Just a pointer to the correct
call would would be enough to keep me quiet for another week.. honest :)
The only way I am aware of for a thread to see keystrokes when that
thread does not have a window that has focus is using
SetWindowsHookEx(). If you manage to get it working, then I'd be
interested in seeing a solution.
Regards,
Rob.