dominospizza 4 Share Posted March 29, 2018 I'm trying to work on a smithing script, how would I figure out if the interface is open? Also how would you make it interact? /** * Checks whether or not the smithing interface is open */ Condition smithingInterfaceOpened = new Condition(){ public boolean verify(){ WidgetChild widgetChild = getWidgets().getWidgetChild(?, ?); return widgetChild != null; } }; Link to comment Share on other sites More sharing options...
Scorpius 144 Share Posted March 29, 2018 // Using getWidgets().getWidgetChild(id, id, etc.); public boolean isOpen(WidgetChild widget) { return widget != null && widget.isVisible(); } // Using getWidgets().getWidget(id); public boolean isOpen(Widget widget) { return widget != null && widget.isVisible(); } Play around with the Widgets debugger Search Text - The text that appears on the widget Search Actions - The action that appears on the top left corner of your RS client when you hover the widget (1st action on the list when you right-click the widget) Fill one (or both) of the boxes according to your search criteria and click refresh. If you'd like to display all the detected widgets just clear out the search boxes and click refresh again. Link to comment Share on other sites More sharing options...
dominospizza 4 Author Share Posted March 29, 2018 Fill one (or both) of the boxes according to your search criteria and click refresh. If you'd like to display all the detected widgets just clear out the search boxes and click refresh again. How would you interact with the widget? So for example clicking the "All" button if not clicked & clicking the "smelt bar" Link to comment Share on other sites More sharing options...
Scorpius 144 Share Posted March 29, 2018 How would you interact with the widget? So for example clicking the "All" button if not clicked & clicking the "smelt bar" There's an interact() function, check the API. Link to comment Share on other sites More sharing options...
dominospizza 4 Author Share Posted March 29, 2018 There's an interact() function, check the API. Alright thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.