SHARE
TWEET

Untitled

a guest Jul 12th, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.awt.event.InputEvent;
  2.  
  3. import java.util.Random;
  4.  
  5. import java.awt.*;
  6.  
  7. import java.lang.Thread;
  8.  
  9. import java.util.Scanner;
  10.  
  11. import java.awt.event.MouseListener;
  12.  
  13.  
  14. public class autoclickermain{
  15.  
  16.  
  17.  
  18.     public static void autoclickermain(String[] args) {
  19.  
  20.         Scanner scanner = new Scanner(System.in);
  21.  
  22.         System.out.println("Welcome to Dark clicker");
  23.  
  24.  
  25.  
  26.         System.out.print("What is the lower limit of cps wanted?: ");
  27.  
  28.         int lowercps = scanner.nextInt();
  29.  
  30.  
  31.  
  32.         System.out.print("What is the upper limit of cps wanted?: ");
  33.  
  34.         int uppercps = scanner.nextInt();
  35.  
  36.         System.out.println();
  37.  
  38.  
  39.  
  40.         System.out.println("Program will start in 3 seconds... Press "F7" to start/pause);
  41.  
  42.         public void setDelay(int ms) {
  43.             this.delay = ms;
  44.         }
  45.  
  46.         try {
  47.  
  48.             Thread.sleep(3000);
  49.  
  50.         } catch (Exception e) {
  51.  
  52.             e.printStackTrace();
  53.  
  54.         }
  55.  
  56.         public class randomnumbergen() {
  57.             public static void main(string[] args) {
  58.                 usingrandomclass();
  59.             }
  60.             static void usingrandomclass() {
  61.                 Random randomgen = new Random();
  62.                 int randomint = randomgen.nextint(uppercps) + 1
  63.             }
  64.         }
  65.  
  66.         AutoClick clicker = new AutoClick();
  67.  
  68.         clicker.setDelay(1000 / randomnumbergen);
  69.  
  70.         public void ClickMouse(int button) {
  71.             try{
  72.                 robot.mousePress(button);
  73.                 robot.mousePress(button);
  74.                 robot.delay(delay);
  75.             } catch(Exception e) {
  76.                 e.printStackTrace();
  77.             }
  78.         }
  79.  
  80.         public void keyPressed(KeyEvent e) {
  81.             switch (e.getKeyCode(118)) {
  82.             }
  83.         }
  84.  
  85.         frame.addMouseListener(new MouseAdapter(){
  86.  
  87.             public void mouseClicked(MouseEvent e) and keyPressed(KeyEvent e) {
  88.  
  89.             clicker.ClickMouse(InputEvent.BUTTON1_DOWN_MASK);
  90.  
  91.         }
  92.  
  93.     }
  94.  
  95.  
  96.  
  97. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top