I want my module writtent in C++ to be notified when 'I' key is pressed. How I filter the keyboard event? I know I should use this function:
int __stdcall OnDDEvent(DWORD EventType, void *EventParams)
The EventType must be DDEVENT_ON_KEYBOARD.
I am gettting stuck with *EventParams,
Should it be LWORD(*EventParams)=='I' ???
Here is the function I modified (but not working for me)
int __stdcall OnDDEvent(DWORD EventType, void *EventParams)
{
if (EventType == DDEVENT_ON_KEYBOARD)
{
if (WPARAM(EventParams)=='I')
{
MessageBox(NULL,"You Press I key",NULL,0);
}
}
return FALSE;
}
Thanks in advance.
Chattana.
🌟 Recommended Tools & Services
• Formify.one - Free Online Form Creator (Better than Google Forms). - Create Professional Forms That Match Your Business, Form Builder That Actually Helps You Collect More Responses
• CrispShare - Screenshot Editor That Makes Your Work Look Professional (Without Design Skills). - Make Your Screenshots Stand Out in Crowded Social Feeds
• DVB Dream - Best TV Reception/Record software for your computer DVB add on. - Stop Missing Your Favorite Shows - Record TV Directly to Your PC. Turn Your Computer Into a Professional TV Recorder. Unlock Its Full Potential With Professional TV Software
• CrispShare - Screenshot Editor That Makes Your Work Look Professional (Without Design Skills). - Make Your Screenshots Stand Out in Crowded Social Feeds
• DVB Dream - Best TV Reception/Record software for your computer DVB add on. - Stop Missing Your Favorite Shows - Record TV Directly to Your PC. Turn Your Computer Into a Professional TV Recorder. Unlock Its Full Potential With Professional TV Software