1
PB切换输入法,在xp下可以,win7下不行,各位大神怎么解决
//定义函数
function boolean ImmSimulateHotKey (ULong hWnd, ULong dwHotKeyID) library "IMM32.dll"
function ulong GetKeyboardLayout(ulong dwLayout) LIBRARY "user32.dll"
function boolean ImmIsIME(uLong hklKeyboardLayout) library "IMM32.DLL"
//切换到中文输入法
ulong hklCurrent
ulong hnd
hklCurrent=GetKeyboardLayout(0)
if not ImmIsIME(hklCurrent) then
hnd=Handle(parent)
ImmSimulateHotKey(hnd,16)
end if
PB切换输入法,在xp下可以,win7下不行,各位大神怎么解决??
梵克雅宝
2017/08/07 03:04- 输入法
- win7
- 点赞
- 收藏
- 回答
满意答案
4个回复
