Jump to content

Script stop event?


Recommended Posts

Posted (edited)

Hey I was wondering if there's a script stop event, like when you press STOP on the OSBot client? I found onExit, but I'm assuming that's when the entire process stops? 

 

Nvm, my dumbass forgot to hit refresh.  My question now is, how would I move the mouse outside the screen? It appears before "onExit" is invoked, mouse is disabled? 

I have no idea how this doesn't work:

 

@Override
public void onExit() throws InterruptedException {

    mouse.moveOutsideScreen();

    MineBot.sleep(2000);

    log("Exited bot");

    super.onExit();
}
Edited by asdttt
fixed
Posted
23 minutes ago, Token said:

Does it not move the mouse? Why would you want to move the mouse outside the client every time the script stops?

Just a weird thought that jagex tracks mouse movement, and when your mouse randomly appears from X to Z without the DPS movement, it's flagged. Idk if it's true, but it's always good to be safe.

 

And no the mouse remains for whatever reason

Posted
1 hour ago, asdttt said:

Just a weird thought that jagex tracks mouse movement, and when your mouse randomly appears from X to Z without the DPS movement, it's flagged. Idk if it's true, but it's always good to be safe.

 

And no the mouse remains for whatever reason

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.

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