Java awt Robot still cant press non-numpad arrows on windows?
问题 This bug is known for years, yet is is still present in Java 1.7.0_25 version which I'm using on Windows 8. The following result are same regardless of wether i have numlock turned on or not: Robot bot = new Robot(); bot.keyPress(KeyEvent.VK_UP); //this in documentation is non-numpad up arrow key bot.keyRelease(KeyEvent.VK_UP); //pressed the numpad up arrow key //folowing line is line #43 bot.keyPress(KeyEvent.VK_KP_UP); //this in documentation is numpad up arrow key bot.keyRelease(KeyEvent