Jump to content

Moving the mouse.


Recommended Posts

Posted

Okay. I try moving the mouse with 
 

int randomX = random(708, 720);
        int randomY = random(324, 321);

        getMouse().move(randomX, randomY);


But get this error 
[ERROR][Bot #1][07/02 06:34:04 AM]: Error in script executor!
java.lang.IllegalArgumentException: bound must be positive


And if I don't do this it won't move the mouse at all and freeze up the client with the error.
 

//int randomX = random(708, 720);
        //int randomY = random(324, 321);

        getMouse().move(708, 321);


I had a script that moved the mouse like the first one above with no issues till I lost the source code a few days ago. Wtf is going on? Also if I remove the code and move the mouse manually the script works perfect.

Also gives the error if it's like this.
 

int randomX = random(708, 720);
        int randomY = random(324, 321);

        getMouse().move(708, 321);

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...