How to convert a message from a WH_KEYBOARD_LL to corespondig unicode char

后端 未结 3 1281
醉梦人生
醉梦人生 2021-01-16 19:29

hello I\'m writing a multilingual app and I\'m using a WH_KEYBOARD_LL hook. I doesn\'t mater why I\'m using the hook, I\'m tried multiple things but this is the

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-16 19:55

    ToUnicodeEx(). It doesn't work in practice unless the keyboard layout is simple. The dead keys is what kills you. Michael Kaplan wrote an 11 part blog serial about it but afaict he just gave up without finishing it. See what you can salvage from it but don't get your hopes up. Chinese use an IME, an Input Method Editor. Software, I think it builds up the character by strokes.

提交回复
热议问题