How to type 'a' using robot.pressKey?
问题 It seems the robot.pressKey(KeyEvent.VK_A) could only type 'A'. How can I type the lower letter 'a' then? 回答1: robot.pressKey(KeyEvent.VK_A) press the keyboard key A which is a lower 'a' without pressing Shift . 回答2: The question section will help you in this: How to make the Java.awt.Robot type unicode characters? (Is it possible?) (if you're satisfied with ascii chars) 来源: https://stackoverflow.com/questions/8530615/how-to-type-a-using-robot-presskey