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

I need to force alt + shift in Delphi to make my application language. I tried when keybd_event called it twice, but that didn't help.

+5
source share
2 answers

Do you want to switch the input language of your application? To do this, use ActivateKeyboardLayout .

+9
source

Do you control the system to be sure that it will respond to this? I have an alternative language, but it can only be switched using the mouse, I turned off the keyboard shortcuts. The problem is that I rarely need an alternative, but I often switched by accident.

+2

All Articles