I am writing on the on-screen keyboard. The keyboard works in a separate process, and the application window is on top and does not receive focus. When I switch between applications, the language changes. How can I get the currently selected language in the toolbar and how can I be notified of its change?
The InputLanguageManager and InputLanguage.net classes can only do this for applications in which they are used.
I found that the WM_INPUTLANGCHANGE message is sent when the language changes. But this message is sent only to the focused window.
The osk.exe application on Windows 7 can do this. Please give me some tips on how I achieve this behavior.
source
share