Search code examples
delphikeyboard-shortcutskeyboard-layout

How can I simulate Alt + Shift to change the language in Windows?


I need to to force Alt + Shift in Delphi to make my language of the application. I tried with keybd_event, calling it twice, but it didn't do the trick.


Solution

  • If you want to switch input language of your application, use the ActivateKeyboardLayout function for this.