//定义函数
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下不行,各位大神怎么解决??
你的windows 7是不是64bit版本的,而pb由于版本比较老,没办法调用64bit的windows api?
http://bbs.csdn.net/topics/360017971
谢谢,问题已经解决,用了另一种方法,上面方法在win7 下不支持。
我也遇到了这个问题,你是怎么解决的?