I have already received the following result from the responses of this post:
Sub Button1_Click
Dim shl As Shell
Dim langs As String
langs = "en-US, Ru"
shl.InitializeDoNotHandleQuotes("shl", "powershell", Array($"Set-WinUserLanguageList -LanguageList ${langs} -Force"$))
shl.RunSynchronous(-1)
End Sub
Sub Button2_Click
Dim shl As Shell
Dim langs As String
langs = "Ru, en-US"
shl.InitializeDoNotHandleQuotes("shl", "powershell", Array($"Set-WinUserLanguageList -LanguageList ${langs} -Force"$))
shl.RunSynchronous(-1)
End Sub
- Button 1 Makes the first input language English, the second Russian
- Button 2, on the contrary, makes the first input language Russian, and the second English
But this is a little different, we already have only these two languages in the country, I need a little different:
- You need to make button 1 the current input language English, and button 2 made the current input language Russian
how do I implement this ?