Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package clicker;
  2.  
  3. import java.awt.AWTException;
  4. import java.awt.Robot;
  5. import java.awt.event.InputEvent;
  6.  
  7. public class Clicker {
  8.  
  9.     public Clicker() throws AWTException, InterruptedException{
  10.        
  11.         Robot rob = new Robot();
  12.    
  13.         Thread.sleep(3000);
  14.         for(int i=0;i<15000;i++){
  15.             rob.mousePress(InputEvent.BUTTON1_MASK);
  16.             Thread.sleep(4);
  17.             rob.mouseRelease(InputEvent.BUTTON1_MASK);
  18.         }
  19.            
  20.        
  21.     }
  22.    
  23.     public static void main(String[] args) throws AWTException, InterruptedException {
  24.         new Clicker();
  25.     }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement