drakensang Posted May 6, 2022 Share Posted May 6, 2022 Hey, I am trying to see if a name is visible on the users screen and to hover over the name if it is, however I just can't seem to get it working since all the username widgets are shown as visible and I have no clue on how to solve this problem when I cannot see if a name is visible or not. Any help? Quote Link to comment Share on other sites More sharing options...
Lunar Posted May 6, 2022 Share Posted May 6, 2022 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(); } 1 Quote Link to comment Share on other sites More sharing options...
drakensang Posted May 7, 2022 Author Share Posted May 7, 2022 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 Quote Link to comment Share on other sites More sharing options...