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.

issues with widgets

Featured Replies

It's hard to go off your word alone when both Explv and myself have working TutIsland scripts relying on the notion of "Click to Continue", and you haven't given us the latest code that's producing the issues you're describing.

    public static RS2Widget getClickToContinueWidget(ScriptContext ctx) {
        return ctx.getWidgets()
                .getAll()
                .stream()
                .filter(f -> f.isVisible() && f.getMessage() != null && (f.getMessage().contains(TEXT_LOOKUP_CLICKHERETOCONTINUE) || f.getMessage().contains(TEXT_LOOKUP_CLICKTOCONTINUE)))
                .findFirst()
                .orElse(null);
    }

 

Edited by NoxMerc

10 hours ago, NoxMerc said:

It's hard to go off your word alone when both Explv and myself have working TutIsland scripts relying on the notion of "Click to Continue", and you haven't given us the latest code that's producing the issues you're describing.


    public static RS2Widget getClickToContinueWidget(ScriptContext ctx) {
        return ctx.getWidgets()
                .getAll()
                .stream()
                .filter(f -> f.isVisible() && f.getMessage() != null && (f.getMessage().contains(TEXT_LOOKUP_CLICKHERETOCONTINUE) || f.getMessage().contains(TEXT_LOOKUP_CLICKTOCONTINUE)))
                .findFirst()
                .orElse(null);
    }

 

He is trying to explain to you that he does not want the bot to draw a box around the word “Please waiting” he wants the script to sleep when it does not see “Click to Continue”. And the only problem is that OSBot does not have the “Please wait” widget available.

He is a perfectionist. His script already clicks to continue he just wants it to sleep when it doesn’t ask to click. 

I think it’s an anti ban method he is working on for Botting multiple tut island accounts.

35 minutes ago, Rumple said:

he just wants it to sleep when it doesn’t ask to click

Then...sleep until ClickToContinue is not null?

6 hours ago, NoxMerc said:

Then...sleep until ClickToContinue is not null?

That’s what he is saying it continues to draw a box over “Please wait” when it should be sleeping.

There's already a method that'll find widgets containing text. Try it:

public boolean isContinueWidgetVisible() {
	List<RS2Widget> l = widgets.containingText("Click here to continue", "Click to continue");
	return l != null && !l.isEmpty();
}

Then you could do something like:

ConditionalSleep sleepyTime;

if (isContinueWidgetVisible()) { // can we continue?
	
	if (keyboard.typeString(" ", false)) { // k let's try press space bar (false = no pressy enter!)
		
		sleepyTime = new ConditionalSleep(5000) { // k now lets create new conditional sleep
			
			@Override
			public boolean condition() throws InterruptedException {
				return !isContinueWidgetVisible();
			}
		};
		
		// k now let's see if sleepy wakes up
		if (sleepyTime.sleep()) {
			// yay interface went away!
		}
	}
}

 

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.