Skip to main content
Arduino

Return to Question

Became Hot Network Question
edited tags
Link
Source Link

Arduino keyboard Input language problem

I need my Arduino (Leonardo) to open cmd, but if keyboard input language isn’t English it prints another language letters.

——— code ———

Keyboard.begin();
Keyboard.press(KEY_LEFT_GUI);
Keyboard.press('r');
delay(1000);
Keyboard.releaseAll();
Keyboard.write("cmd");
Keyboard.press(KEY_RETURN);
Keyboard.releaseAll();
delay(1000);

——— ——— ———

So my question is: can I somehow detect language, and if it’s not there add it?

My idea was to set languagelist via powershell, and it would be perfect for my program, but I don’t know how I can write English text from Arduino on pc with another language :(

Also my Arduino has sd card, maybe it helps.

——— code ———

powershell $OldList = Get-WinUserLanguageList
powershell Set-WinUserLanguageList -LanguageList en-US -Force
-something
powershell Set-WinUserLanguageList -LanguageList $OldList -Force

——— ——— ———

Sorry if it is 0iq question, I’m very new to Arduino, it will be great to hear your ideas!

AltStyle によって変換されたページ (->オリジナル) /