The Robot class has getAutoDelay()
and setAutoDelay()
methods. I’m not entirely sure how to use them but I think the delay is there because the computer needs some time to react to an event being triggered. You may have to play around with the auto delay if it’s causing problems. Sorry I can’t be more helpful I’ve never used those parts of the Robot class.