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.

ending conditional sleep on message[solved]

Featured Replies

Taken a different approach to the whole action and made a work around, thanks for the imput

Edited by GPSwap

  • Author
13 minutes ago, The Hero of Time said:

... put a message after the conditional sleep code?

No I want the condition sleep to end because of a game message

Edited by GPSwap

listen to chatbox for a message and turn a variable true when that message is received and then have your conditional sleep until that boolean is true

  • Author
22 minutes ago, IDontEvenBot said:

listen to chatbox for a message and turn a variable true when that message is received and then have your conditional sleep until that boolean is true

Tried this when I first had the issue, and it wouldnt work it would wait till the end of the sleep

Taken a different approach to the whole action and made a work around, thanks for the imput

9 hours ago, GPSwap said:

Tried this when I first had the issue, and it wouldnt work it would wait till the end of the sleep

Taken a different approach to the whole action and made a work around, thanks for the imput

If it doesnt work its likely that the conditional sleep caches the value of the boolean and doesnt check if it's changed so make it a volatile Boolean and that should work, I think!

  • Author
3 minutes ago, IDontEvenBot said:

If it doesnt work its likely that the conditional sleep caches the value of the boolean and doesnt check if it's changed so make it a volatile Boolean and that should work, I think!

well I found a work around for it but il keep that in mind for the future thanks bro

12 minutes ago, IDontEvenBot said:

If it doesnt work its likely that the conditional sleep caches the value of the boolean and doesnt check if it's changed so make it a volatile Boolean and that should work, I think!

I think it's because the conditional sleep blocks the thread, and so onMessage isn't called until it finishes.

Pretty sure ConditonalSleep doesn't cache anything because that would kind of defeat the point...

Edited by Explv

12 minutes ago, Explv said:

I think it's because the conditional sleep blocks the thread, and so onMessage isn't called until it finishes.

Pretty sure ConditonalSleep doesn't cache anything because that would kind of defeat the point...

Ahh forgot the purpose so yeah it doesnt make sense!

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.