Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Script stop event?

Featured Replies

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

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

  • Author
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

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

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.