Here's the problem: I have a user with disabilities and using a specialized virtual keyboard. He doesn't have any trouble switching languages in his virtual keyboard, but it doesn't always change the input language (input keyboard?) of the currently-active application - which is exactly what he needs.
So is there any API calls I can do to query a window's current input keyboard? More importantly, is there a way I can externally set another window's input language?