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

后端 未结 3 1275
醉梦人生
醉梦人生 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:45

    That conversion is complicated. Even simple deadkeys are annoying to handle, and when using an IME gets very ugly.

    Consider intercepting the messages where the input control receives the already converted character. But of course that's much uglier to code.

    The problem is that a normal message hook requires dll injection into the target process, and that dll should not be written in C#. But perhaps there is some other message interception API that works without dll injection.

提交回复
热议问题