Step 0 Posted September 27, 2017 I'm brand new to scripting bots. How can I check if an interface is open and interact with it. Specifically trying to use a gold bar on a furnace and click make item
ozeki6 32 Posted September 27, 2017 An interface is an widget . For example the bank interface . Most of the widgets have childs . For example the "x" button in the right upper corner of the bank is a child of the bank's interface . Some childs have childs too , be aware of that . Let's say I want to see if the bank interface is open . You can do getWidgets().getWidget(id) != null . If it's non null it means it exists and its visible . Let's say I want to close the bank , you could do something like getWidgets().getWidgetChild(id1,id2).interact(). id1 = parent id and id2 = child id .
Recommended Posts
Archived
This topic is now archived and is closed to further replies.