Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package clicker;
- import java.awt.AWTException;
- import java.awt.Robot;
- import java.awt.event.InputEvent;
- public class Clicker {
- public Clicker() throws AWTException, InterruptedException{
- Robot rob = new Robot();
- Thread.sleep(3000);
- for(int i=0;i<15000;i++){
- rob.mousePress(InputEvent.BUTTON1_MASK);
- Thread.sleep(4);
- rob.mouseRelease(InputEvent.BUTTON1_MASK);
- }
- }
- public static void main(String[] args) throws AWTException, InterruptedException {
- new Clicker();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement