views:

94

answers:

1

I have an application that can successfully inject keyboard input using the SendInput API with the UNICODE flag set. This causes WM_KEYUP and WM_KEYDOWN messages to be generated with the VK code of E7 (VK_PACKET), which gets appropriately translated into the correct WM_CHAR message. This works in all the applications I have tried except for Pidgin, which uses GDK. GDK seems to only look for WM_KEYUP messages. Since the ones being generated here don't actually have any indication of the input character (only the WM_CHAR does), the input is ignored. Is there a way I could get around this. I haven't had much luck if I use SendInput without the UNICODE flag.

A: 

I was stuck on the same problem sometime ago, I used the clipboard to get around the problem but that's just a patch the better way is to use WM_CHAR. And I'll reply here if I find someway of sending Unicode characters with WM_CHAR. Since GTK+ is open you can contribute to it and help them(I'm a beginner at C)

madura