Skip 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.

[2.3.73] isVisible() does not work for widgets

Featured Replies

Client Version: 2.3.73

 

Bug: The isVisible() boolean is returning false when it should be true.

 

How to replicate: I wrote this to test it during the first trade screen

 

if (widgets.isVisible(335, 10)){

log("TRADE SCREEN VISIBLE");

}

I was not able to reproduce the issue, visibility is working as intended.

    boolean visible;


    @Override
    public int onLoop() throws InterruptedException {
        RS2Widget widget = getWidgets().get(261, 66);
        visible = widget != null && widget.isVisible();
        return 500;
    }


    @Override
    public void onPaint(Graphics2D g) {
        g.drawString("Run widget is visible: " + visible, 10, 60);
    }
  • Developer

 

I was not able to reproduce the issue, visibility is working as intended.

    boolean visible;


    @Override
    public int onLoop() throws InterruptedException {
        RS2Widget widget = getWidgets().get(261, 66);
        visible = widget != null && widget.isVisible();
        return 500;
    }


    @Override
    public void onPaint(Graphics2D g) {
        g.drawString("Run widget is visible: " + visible, 10, 60);
    }

 

I thought you neevr used static ID's? doge.png

Visible widgets seems to work fine for me.

 

@@ProjectPact

Are you sure you used the right widgets?

 

Did you try using it like Alek did above ^ ?

Maybe the method widgets#isVisible(parent, child) is broken?

 

Khaleesi

Edited by Khaleesi

  • Author

I thought you neevr used static ID's? doge.png

Visible widgets seems to work fine for me.

 

@@ProjectPact

Are you sure you used the right widgets?

 

Did you try using it like Alek did above ^ ?

Maybe the method widgets#isVisible(parent, child) is broken?

 

Khaleesi

 

 

I have originally been using widgets#isVisible(parent, child)... so maybe that is it. 

I thought you neevr used static ID's? doge.png

 

 

There is very limited use of static ids in the API, no sense in using patterns to test something specific like visibility.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.