I am writing on screen keyboard application. The keyboard is running in separate process and the application window is topmost and does not get focus. When I switch between applications, the language is changed. How can I get the current selected language on toolbar and how can I be notified when it is changed?
InputLanguageManager and InputLanguage classes of .net can only do this for applications in which they are used.
I found that WM_INPUTLANGCHANGE message is send when the language is changed. But this message is only send to focused window.
The osk.exe application in Windows 7 can do this. Please give me some suggestions how I reach this behavior.