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.

How do I logout and end the script?

Featured Replies

I'm trying to set up a simple logout function but for some reason it's not working.

 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().logOut();

When I run this, the log and sleeps work and then the bot navigates to the logout tab, highlights the 'logout' button and then does nothing 🤨

  • Author

I've managed to log out now using 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().open();
		getLogoutTab().logOut();

but the auto-logger just logs me back in repeatedly - how can I terminate the script if I have logged off, without the onLoop continuing to loop?

  • Author

Tried calling onExit but the bot is still initiating the Auto-Login solver

 

    	log("No money - logging off in 5 seconds");
    	sleep(5000);
    	log("logging off");
		getLogoutTab().open();
		getLogoutTab().logOut();
		onExit();

 

  • Author
2 hours ago, B0lss said:

Use

stop();

 

Tyvm, is there any way to utilize this so that the script stops but the client doesn't automatically log you out?

  • 1 year later...

I've tried all of these suggestions and my script still wont logout on exit

EDIT: now stop(); works but it didn't when I posted, not sure what happened to fix it

Edited by TheCongregation

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.