Is there a way to get SendInput to work with the application using the GDK?

I have an application that can successfully enter keyboard input using an API SendInputwith the UNICODE flag set. This leads to the creation of posts WM_KEYUPand WM_KEYDOWNwith the VK code for the E7 ( VK_PACKET), which is appropriately converted into the right message WM_CHAR. This works in all the applications I tried except for Pidgin, which uses GDK. GDK seems to be looking only for messages WM_KEYUP. Since the ones generated here actually have no indication of an input character (only for WM_CHAR), the input is ignored. Can i get around this. I'm out of luck if I use SendInput without the UNICODE flag.

+3
source share
1 answer

When I had a similar problem, I used the clipboard as a workaround. Best used WM_CHAR, and if I find a way to send Unicode characters with WM_CHAR, I will update my answer. Since GTK + is open source, you can contribute and help them (I start with C).

0
source

Source: https://habr.com/ru/post/1711030/


All Articles