Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Robot robot = new Robot();
- Rectangle rectangle = new Rectangle(184, 310, 410, 39);
- Point start = new Point(rectangle.x, rectangle.y);
- Point finish = new Point(rectangle.x + rectangle.width, rectangle.y + rectangle.height);
- robot.mouseMove(start.x, start.y);
- robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
- robot.mouseMove(finish.x, finish.y);
- robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
Add Comment
Please, Sign In to add comment