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.

chatbox interface

Featured Replies

aye i'm currently making a fisher / cooker bot, but i ran into this trouble when writing my script. How can i check if this interface is there in the chatbox and when its not?

 

should i search for strings or something? or just get the interface id? and if one of those, can you possibly give me an example. Thanks!

nimetön.png

Get the interface by id or text and check if it isn't null and then if it is visible.

Edit code: 

RS2Widget widget = getWidgets().get(270,1);
        if(widget != null && widget.isVisible()) {
            log("Open");
        }else {
            log("Close");
        } 

Here is the library https://osbot.org/api/org/osbot/rs07/api/Widgets.html

Edited by inababila

  • Author
6 minutes ago, inababila said:

Get the interface by id or text and check if it isn't null and then if it is visible.

whats the command for that? for example for inventory its just "inventory.contains(1412581285712857)". Whats the command for interfaces ty

2 minutes ago, alkku15 said:

whats the command for that? for example for inventory its just "inventory.contains(1412581285712857)". Whats the command for interfaces ty

widgets

3 minutes ago, alkku15 said:

thanks to both of ya

No problem, and if you need anything, let me know!

If you're wondering how to get the widget ids/strings you need use the widget debugger in osbot settings.

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.