Welcome![Sign In][Sign Up]
Location:
Search - wm_ime_char

Search list

[Hook apiHOOKsr

Description: //以前一直没有注意到一个问题,就是用键盘钩子截获字符输入时是截不到特殊字符的,比方说中文输入法之类的. //后来用到了消息钩子去HOOK WM_IME_CHAR,这时候大部分已经能够获取了,但是对于其他一些程序,比方说 //WORD之类的也就不能截获了.后来到MSDN上查到, 要用到WM_IME_COMPOSITION消息,并且在处理该消息 //时要用到IMM的一些库函数从输入法数据区中获取.比方说ImmGetContext,ImmGetCompositionString等等.
Platform: | Size: 2010 | Author: lypdl | Hits:

[Hook apiHOOKsr

Description: //以前一直没有注意到一个问题,就是用键盘钩子截获字符输入时是截不到特殊字符的,比方说中文输入法之类的. //后来用到了消息钩子去HOOK WM_IME_CHAR,这时候大部分已经能够获取了,但是对于其他一些程序,比方说 //WORD之类的也就不能截获了.后来到MSDN上查到, 要用到WM_IME_COMPOSITION消息,并且在处理该消息 //时要用到IMM的一些库函数从输入法数据区中获取.比方说ImmGetContext,ImmGetCompositionString等等. -//Has not been previously noted that one issue, that is intercepted by the keyboard hook input characters is less than cut-off special characters, such as Chinese input method, such as.// Later use the information to hook HOOK WM_IME_CHAR, this time the majority of has been able to obtain, but for some other procedures, for example,// WORD like it should not intercepted. later found on MSDN, take into account WM_IME_COMPOSITION news, and deal with the message// when to use IMM Some library functions from the input data area to obtain. For example ImmGetContext, ImmGetCompositionString and so on.
Platform: | Size: 2048 | Author: lypdl | Hits:

CodeBus www.codebus.net