When using Robot.keyPress for KeyEvent VK_UP , the numpad key is triggered, rather than a regular arrow key. I am trying to write a keyboard emulator that can be used for games, etc. Testing with TrackMania. I notice that it does not call a normal key, but a key on the keyboard.
How can I launch regular keys using keyPress?
When checking the API , it is assumed that this is an arrow key other than numpad. Which is not.
Robot r = new Robot(); r.keyPress(KeyEvent.VK_UP);
This will create a numpad up key.
If this cannot be done in Java, is there any language that allows this?
source share