Jump to content

Moving the mouse.


Gunman

Recommended Posts

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);

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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