1

I got a windows 10 with 2 keyboard layout. I would like to switch progrmatically the current used keyboard via a bat file. Does anyone know what command does it?

to make it clear, I do not want to install a new language pack, I would like to change the input keyboard without making the user press alt+shift

edit: this is not a dup! the question which linked in the header asks about adding new language ,not changing existing lang pack!

Mr P
  • 13

1 Answers1

0

As you are using windows 10, you have got powershell 5. Now you can't do this using cmd. You have to use powershell: Set-WinUserLanguageList -Force Layout.

You can specify more than one layouts seperated by comma as an array. The language given as the firstto the array will be selected as the active language, so this can be an efficient way to change both active language and the overall list of keyboard languages available.

Also you can use Set-WinUILanguageOverrode. If you want to send the key strokes you can use Wscript.Shell com object send keys method.

wasif
  • 9,176