Hi,
I want to "click" with the mouse using a Robot object like this:
Robot bot = new Robot();
bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
This results in:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Invalid combination of button flags
I even delayed the process before it starts clicking to have time to release the mouse but the same exception appears