I want to change the input language of the active window. The problem is that the active window is not my application. I know about InputLanguage.CurrentInputLanguage = lang;, but it changes the language for my WinForms application, and not for the active application.
Summary: my situation is that my program listens for any keyboard event (even when it is not focused) and executes the code when pressed F1.
I want this tap on to F1change the language to Hebrew in Notepad, which was the active app when I pressed F1.
I am interested in either a low-level solution or a high-level solution.
source
share