Keyboard hooks, ToUnicodeEx, MapVirtrualKeyEx

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello, I need help with ToUnicodeEx function from user32.dll.Im
working on keyboard hook and I want to get char from virtual key code.
For this issue Im using ToUnicodeEx function from user32.dll. But Im
having a problem with dead keys. Im using Czech keyboard layout and
when I want to write some of the czech char which is composed by "line
mark" which is clasified as dead key and some regular letter. And when
I write "line mark", use ToUnicodeEx in my hooks, it automaticly writes
two "line marks" instead of waiting for next input. I really dont know
why. Also I tried to use MapVirtualKeyEx instead of ToUnicodeEx and it
was fine, but it returns me wrong char for special chars. Thanks!

View the full article
 
Back
Top