mase
September 12th, 2007, 07:00 PM
I can use keybd_event(..) function to send any key stroke from the regular keyboard, but I have problem when trying to send the key stroke using the button that is not defined in the regular keyboard. This button is made special and only available for this device only. Please help if anybody knows and I'm not using MFC.
Boris K K
September 13th, 2007, 08:20 AM
If the "special" button is processed using the standard Windows mechanism WM_(SYS)KEYDOWN, WM_(SYS)KEYUP, than it has a virtual key code or a scan code and you can use keybd_event or SendInput to simulate its action.
However, if it is intercepted at driver level and does not generate a standard Windows messages, the only solution might be to write a keyboard filter driver, which can be quite challenging if there is no previous experience.