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.

Command to close client after bot logoff?

Featured Replies

I want the osbot client to close when the script stops but I can'f find anything about it... 

Could do 

System.exit(0);

If you have a custom login handler.

If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible

10 minutes ago, Butters said:

Could do 


System.exit(0);

If you have a custom login handler.

If no, then I suggest starting scripts via CLI and close them with taskkill/pkill in batch/bash if possible

Beautiful, thank you for this, I was looking for something like that as well.

Edited by w0000t

8 hours ago, inababila said:

Exactly what @Butters said. @Explv has a wonderful login handler here 

 

Maybe I misunderstood what you exactly need.

If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye.

If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities.

  • Author
8 hours ago, Butters said:

Maybe I misunderstood what you exactly need.

If you wanna close the client when it logs out, then probably it finished doing certain stuff and log out means I'm done bye bye.

If that's the case. then no need for a login handler, just do System.exit(); after your bot finished it's' activities.

Yep, that's exactly what I need! I'm going to try it right now.

1 hour ago, gptaqbc said:

Yep, that's exactly what I need! I'm going to try it right now.

Be careful though! Jagex knows real players don't exit clients 

  • Author
1 hour ago, Juggles said:

Be careful though! Jagex knows real players don't exit clients 

Are you serious man? o.o

  • Author

Update: image.png.f3c665d29fd517cc1932ce0641fab788.png

This is not working. Bot keeps logging back in. I tried without the .stop(true) also...

 

Any suggestion?

  • Author

UPDATE: I had a sleep before these lines so the login handler was triggered.

 

Working fine now!

On 3/14/2018 at 1:26 AM, gptaqbc said:

Update: image.png.f3c665d29fd517cc1932ce0641fab788.png

This is not working. Bot keeps logging back in. I tried without the .stop(true) also...

 

Any suggestion?

Issue was you stopped script before System.exit(); :boge:

It never got executed

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.