Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Javaでキーボードの押下をシミュレートするために何をインポートできますか?
たとえば、イベントが発生したときに自動的に「a」キーを押すプログラムを作成するために使用できます。
必要なものはすべてありますjava.awt.Robot
java.awt.Robot
例:
Robot robot = new Robot(); robot.keyPress(KeyEvent.VK_A);