Answers for "java mouse event button"

1

java mouseclick

public static void click(int x, int y) throws AWTException{
    Robot bot = new Robot();
    bot.mouseMove(x, y);    
    bot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
    bot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
}
Posted by: Guest on October-07-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language