• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Java AutoClickerz en Java

Status
Not open for further replies.

N00bz

Leech
User
Joined
May 9, 2012
Messages
2
Reputation
0
Reaction score
1
Points
3
Credits
0
‎13 Years of Service‎
40%
Buenas a todos!

Este es mi primer post y aporte al mismo tiempo por mucho tiempo que lleve registrado xD , llámame fisgón.

Hace no mucho tiempo uno de mis hermanos me pidió que hiciese un autoclicker en java y le dije que me lo miraría, que no debía ser muy difícil y bueno xD aquí tenemos el resultado.

//INFO//

-Esta hecho en Java.

-IDE utilizado netbeans.

-Interfaz(X'D) hecha en JavaFx.

Aquí tenemos el programa en Ejecución

ad72294fc18a64e5870451e4074a7c3f.png


Aquí el code.

Code:
>
package javafxapplication2;

import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.util.logging.Level;
import java.util.logging.Logger;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

/**
*
* @author IAmNbz
*/
public class JavaFXApplication2 extends Application {

   @Override
   public void start(Stage primaryStage) {

       Label label1 = new Label("X:");
       final TextField textField = new TextField();
       HBox hb = new HBox();
       Label label2 = new Label("Y:");
       final TextField textField2 = new TextField();
       Label label3 = new Label("Clicks:");
       final TextField textField3 = new TextField();

       Button btn = new Button();
       btn.setText("'GOGOGO'");

       btn.setOnAction(new EventHandler() {
           @Override
           public void handle(ActionEvent event) {

               // int a = 100;
               //int z = 100;
               //int loop = 50;
               int a = Integer.parseInt(textField.getText());
               int z = Integer.parseInt(textField2.getText());
               int loop = Integer.parseInt(textField3.getText());
               Robot robot = null;
               try {
                   robot = new Robot();
               } catch (AWTException ex) {
                   Logger.getLogger(JavaFXApplication2.class.getName()).log(Level.SEVERE, null, ex);
               }

       
               try {
                   Thread.sleep(10);
               } catch (InterruptedException ex) {
                   Logger.getLogger(JavaFXApplication2.class.getName()).log(Level.SEVERE, null, ex);
               }
               int i = 0;
       
                   while (i != loop) {
                       robot.mouseMove(a, z);
                       robot.mousePress(InputEvent.BUTTON1_DOWN_MASK);
                       robot.mouseRelease(InputEvent.BUTTON1_DOWN_MASK);
                       i++;
                   }
             
               }
           
       });

       StackPane root = new StackPane();
       hb.getChildren().addAll(label1, textField, label2, textField2, label3, textField3, btn);
       hb.setSpacing(10);
       root.getChildren().add(hb);

       Scene scene = new Scene(root, 690, 25);

       primaryStage.setTitle("AutoClicker Made By N00bz!");
       primaryStage.setScene(scene);
       primaryStage.show();
   }

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
       launch(args);
   }

}
Extra!

Dejo un enlace con la aplicacion en Jar para utilizarla sin necesidad de compilar y tambien el proyecto.

This link is hidden for visitors. Please Log in or register now.


COMO SE USA :D

En X ponemos la posicion(horizontal) de la pantalla. Ejemplo = 900.

En Y ponemos la posicion(vertical) de la pantalla. Ejemplo = 400.

En Clicks cuantos clicks tiene que dar.

 
Please note, if you want to make a deal with this user, that it is blocked.
Re: AutoClickerz en Java

Amazing bro. I had made a programmer in VB6, and was a good job too.

 
Re: AutoClickerz en Java

Amazing bro. I had made a programmer in VB6, and was a good job too.
Ty mate! i think Autoclickers in vb6 are better cuz the program can click on windows like games, but in java the program will be MultiOs that is the only reason for i made it.

And thanks for your reply!

 
Status
Not open for further replies.
Back
Top