Simulation von Tastepress in Java, die unter Linux ausgeführt werden, um das Tastaturlayout zu ändern

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Simulation von Tastepress in Java, die unter Linux ausgeführt werden, um das Tastaturlayout zu ändern

by Anonymous » 02 Apr 2025, 19:35

Ich schreibe ein Wörterbuchprogramm mit dem Schalten von Tastaturlayout.try {
Robot r = new Robot();
r.keyPress(KeyEvent.VK_CONTROL);
r.keyPress(KeyEvent.VK_ALT);
r.keyPress(KeyEvent.VK_K);
r.keyRelease(KeyEvent.VK_K);
r.keyRelease(KeyEvent.VK_CONTROL);
r.keyRelease(KeyEvent.VK_ALT);
} catch (Exception e) {
e.printStackTrace();
}
< /code>
Warum funktioniert das nicht? Ich habe es geschafft, Strg-C mit ähnlichem Code zu simulieren, aber das tut nichts.

Top