Jump to content

chatbox interface

Recommended Posts

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!


Link to comment
Share on other sites

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()) {
        }else {

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

Edited by inababila
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...