Jump to content

Script stop event?


asdttt

Recommended Posts

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

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

Link to comment
Share on other sites

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.

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