Hooking keyboard in Windows98?
-
Does anyone have an idea of how to hook the keyboard under Windows 98? I have to catch the character, send to ANY application running? Maybe win32 hook is the right solution, but on what application to install it??? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
-
Does anyone have an idea of how to hook the keyboard under Windows 98? I have to catch the character, send to ANY application running? Maybe win32 hook is the right solution, but on what application to install it??? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
As far as I know there are two ways to do this: 1) Set a Journal Record Hook (use
SetWindowsHookEx
withWH_JOURNALRECORD
) 2) UseAttachThreadInput
directly (will probably lock up your computer sooner or later and create a forehead-shaped bump in your desk) Anyway, more than keystrokes are recieved from the RIT, and you need to sort them out from other hardware messages. /moliate -
Does anyone have an idea of how to hook the keyboard under Windows 98? I have to catch the character, send to ANY application running? Maybe win32 hook is the right solution, but on what application to install it??? "Needless redundancy is the hobgoblin of software engineering." - Peter Darnell
You can use this: http://www.codeproject.com/dll/keyboardhook.asp :)