Jump to content

Move mouse outside screen when script exits


Recommended Posts

Posted (edited)

Hi I want to move the mouse outside the screen when the scripts exits. Because when i stop the script the mouse stays on the screen then when i move my actual mouse into the window its doing some freaky movements.. I used to use this code below to accomplish this task. However now, it just prints false and doesn't move the mouse at all. any workarounds?

 

THANK U

 

    @Override
    public void onExit() {
        log("Success?: " + mouse.moveOutsideScreen());
    }

 

Edited by top kek

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...