Skip to content

Instantly share code, notes, and snippets.

@mess110
Created January 17, 2014 23:06
Show Gist options
  • Select an option

  • Save mess110/8483363 to your computer and use it in GitHub Desktop.

Select an option

Save mess110/8483363 to your computer and use it in GitHub Desktop.
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
public class Wow {
public static void main(String[] args) {
try {
Robot robot = new Robot();
robot.delay(2000);
for (int i = 1; i < 5000; i++) {
robot.mousePress(InputEvent.BUTTON1_MASK);
robot.mouseRelease(InputEvent.BUTTON1_MASK);
robot.delay(40);
}
} catch (AWTException e) {
e.printStackTrace();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment