Created
January 17, 2014 23:06
-
-
Save mess110/8483363 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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