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.

Logout + Sleep

Featured Replies

Hi everyone,

I'm trying to get my farming/birdhouse scripts to logout and sleep for a certain amount of time before re initializing the AutoLogin function. At the current moment I have just been having it chill in bank and change tabs every few minutes.

So I tried using something like this:

logoutTab.logout();
sleep(3000000); //3m is 50mins in milliseconds

So right after it logs out, it tries to log back in with the auto logger (before completing the rest of the loop with the sleep). 

Has anyone done this successfully? Am I missing something?

Edit: would be great if we could get a logoutSleep(int seconds) method for the logoutTab api. Seems like something that would be useful to most scripters

Edited by DylanSRT

11 minutes ago, DylanSRT said:

Hi everyone,

I'm trying to get my farming/birdhouse scripts to logout and sleep for a certain amount of time before re initializing the AutoLogin function. At the current moment I have just been having it chill in bank and change tabs every few minutes.

So I tried using something like this:


logoutTab.logout();
sleep(3000000); //3m is 50mins in milliseconds

So right after it logs out, it tries to log back in with the auto logger (before completing the rest of the loop with the sleep). 

Has anyone done this successfully? Am I missing something?

Edit: would be great if we could get a logoutSleep(int seconds) method for the logoutTab api. Seems like something that would be useful to most scripters

You have to override the default login handler with something like this 

Then use the CLI to launch the script with

-allow norandoms

 

 

Yes as @jca pointed out, you will need to use CLI and then create your own login handler to log back in after X amount of time. 

Here is the full CLI table

 

  • Author

@jca @Juggles

Unfortunately, I only use mirror mode. There is no way to launch a mirror mode client through cli is there? wish they supported mirror mode more

26 minutes ago, DylanSRT said:

@jca @Juggles

Unfortunately, I only use mirror mode. There is no way to launch a mirror mode client through cli is there? wish they supported mirror mode more

Correct, mirror mode does not support CLI.

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.