Skip to content

Instantly share code, notes, and snippets.

@vladholubiev
Created July 9, 2014 21:24
Show Gist options
  • Save vladholubiev/4d36d4e5c6a6950ecfd9 to your computer and use it in GitHub Desktop.
Save vladholubiev/4d36d4e5c6a6950ecfd9 to your computer and use it in GitHub Desktop.
ClickGeometry
private void clickGeometry() throws AWTException {
for (Coordinate c : resultGeometry.getCoordinates()) {
Robot bot = new Robot();
bot.mouseMove((int) c.x, (int) c.y);
bot.mousePress(InputEvent.BUTTON1_MASK);
bot.mouseRelease(InputEvent.BUTTON1_MASK);
bot.delay(500);
}
coords.clear();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment