我正在研究(又一个)keyboardlayoutswitcher并在Skype窗口(win7x64上的6.22版)中遇到了奇怪的麻烦。AnycombinationsGetForegroundWindow()/GetFocus()/GetParentWindow()不会成功更改布局仅在消息输入内,更奇怪的是,仅当输入多个字符时。其他情况下工作得非常好,除了wpf应用程序拒绝服从没有focusedHandle的东西。publicstaticvoidSetNextKeyboardLayout(){IntPtrhWnd=GetForegroundWindow();uintprocessId;u