Jump to content

Friends chat, names are always loaded, how to determine if a name is visible on the screen


drakensang

Recommended Posts

15 hours ago, Lunar said:

Haven't tested this but this should work. You could change the name in nameWidget to whatever you were searching for.

RS2Widget nameWidget = getWidgets().getWidgetContainingText("name");
        
if (nameWidget != null && nameWidget.isVisible()) {
	nameWidget.hover();
}

 

Unfortunately this doesn't work

15 hours ago, Lunar said:

Haven't tested this but this should work. You could change the name in nameWidget to whatever you were searching for.

RS2Widget nameWidget = getWidgets().getWidgetContainingText("name");
        
if (nameWidget != null && nameWidget.isVisible()) {
	nameWidget.hover();
}

 

This will always be true since the widget is always visible, even if it is not

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.
Note: Your post will require moderator approval before it will be visible.

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