I am trying to create a Win32 Dialog based program to accept keystrokes from the keyboard, then I will have some sort of lookup table to convert those keystrokes into another format and then I will send that out the comm port.
The problem I need help with is how to use the
SetWindowsHookEx() function to intercept the keystrokes.
I first tried to look for WM_KEYDOWN and WM_KEYUP , but apparently a Dialog based app does not get keyboard focus.
I have seen mention of SetWindowsHookEx()function but no clear explanation on how to use it. I have also looked at some info on MSDN and the code examples seem to be written for Windows 3.1 and it looks unfamiliar to what I am used to in Dev Studio.