Jump to content

Move mouse outside screen when script exits


top kek

Recommended Posts

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
Link to comment
Share on other sites

On 3/28/2019 at 11:37 AM, Token said:

May be related to the way the script is executed, but only the developers can confirm this. I believe the event executor is stopped before onExit runs, so you may not be able to execute things like mouse movements or other events in there.

https://osbot.org/forum/topic/153140-script-stop-event/

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