asdttt Posted March 28, 2019 Share Posted March 28, 2019 (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 March 28, 2019 by asdttt fixed Quote Link to comment Share on other sites More sharing options...
Token Posted March 28, 2019 Share Posted March 28, 2019 Does it not move the mouse? Why would you want to move the mouse outside the client every time the script stops? Quote Link to comment Share on other sites More sharing options...
asdttt Posted March 28, 2019 Author Share Posted March 28, 2019 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 Quote Link to comment Share on other sites More sharing options...
Token Posted March 28, 2019 Share Posted March 28, 2019 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. Quote Link to comment Share on other sites More sharing options...