Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.AWTException;
- import java.awt.Robot;
- import java.util.Random;
- public static void main(String[] args) {
- try {
- Random r = new Random();
- Robot robot = new Robot();
- while (true) {
- robot.delay(r.nextInt(10000));
- robot.mouseMove(r.nextInt(800),r.nextInt(600));
- }
- } catch (AWTException e) {}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement