Good evening, everyone.
I have a strange one for all you clever programmers out there. I'm developing an application to teach new computer users how to type. Naturally, it will endeavor to teach everything from letters to complicated key combinations, like Control+Escape, Alt+Tab and Alt+Control+Delete. I am, however, unable to find out when these key combinations are typed using the standard GetMessage function, of course, much less stop them from firing up the start menu or switching away from my application. Another headache is programs that define hotkeys in their links. If a program puts its link on the desktop and makes a shortcut key to launch it, I am unable to capture this either.
I believe my solution is the "CBT Hook". It is designed for computer-based training applications, sounds good since that's what mine is, to capture and optionally disallow keystrokes. Or so I thought. Try as I might, I can't seem to get it to do anything but crash, let alone actually do something useful. I know it's highly unlikely, but I thought perhaps one of you might have done this already? I've spent the evening poring over reference materials such as the Win32 Programmer's reference, but I still can't get anything to work.
Thus, if anyone has any ideas on how to capture a couple of tricky little keystrokes and prevent Windows from acting on them, I'd love to hear about it.
Thank you!
Danny.
I have a strange one for all you clever programmers out there. I'm developing an application to teach new computer users how to type. Naturally, it will endeavor to teach everything from letters to complicated key combinations, like Control+Escape, Alt+Tab and Alt+Control+Delete. I am, however, unable to find out when these key combinations are typed using the standard GetMessage function, of course, much less stop them from firing up the start menu or switching away from my application. Another headache is programs that define hotkeys in their links. If a program puts its link on the desktop and makes a shortcut key to launch it, I am unable to capture this either.
I believe my solution is the "CBT Hook". It is designed for computer-based training applications, sounds good since that's what mine is, to capture and optionally disallow keystrokes. Or so I thought. Try as I might, I can't seem to get it to do anything but crash, let alone actually do something useful. I know it's highly unlikely, but I thought perhaps one of you might have done this already? I've spent the evening poring over reference materials such as the Win32 Programmer's reference, but I still can't get anything to work.
Thus, if anyone has any ideas on how to capture a couple of tricky little keystrokes and prevent Windows from acting on them, I'd love to hear about it.
Thank you!
Danny.
Comment