import java.awt.*; import java.awt.event.KeyEvent; import java.io.IOException; import java.util.Random; import java.util.concurrent.TimeUnit; public class Main { public static void main(String[] args) throws AWTException, InterruptedException { Robot robot = new Robot(); Random random = new Random(); int x = 1000; int y = 700; robot.mouseMove(x, y); while (true) { robot.mouseMove(random.nextInt(250, x + 200) - 200, random.nextInt(600, y + 100) - 100); int digit = random.nextInt(10); typeDigit(robot, digit); TimeUnit.SECONDS.sleep(random.nextInt(5)); System.gc(); } } public static void typeDigit(Robot robot, int digit) { int keyCode = KeyEvent.VK_0 + digit; robot.keyPress(keyCode); robot.keyRelease(keyCode); } public static void createInstallationProcess(Robot robot) throws InterruptedException { System.out.println("Installation process started\n"); int percent = 0; while (percent < 100) { clearConsole(); System.out.printf("Installation process %d%%\n", percent); percent++; Thread.sleep(3000); } } public static void clearConsole() { try { if (System.getProperty("os.name").contains("Windows")) { new ProcessBuilder("cmd", "/c", "cls").inheritIO().start().waitFor(); } else { System.out.print("\033\143"); } } catch (IOException | InterruptedException ex) { } } }