TheWind Posted September 17, 2017 Share Posted September 17, 2017 I can't seem to figure out which widget contains the options for smithing bars. When I look through the widgets each widget's tooltip seems to be one of the options. I would prefer to work with widgets in this context as opposed to MouseDestinations. Anybody worked with this before? Quote Link to comment Share on other sites More sharing options...
TheWind Posted September 17, 2017 Author Share Posted September 17, 2017 3 minutes ago, Kurisu said: use the widget debugger & check which has the action message. Edit: sec ill find an acc to check and give u it I spent like 20 minutes going through all the widgets in the furnace interface. Maybe I was missing something obvious... Quote Link to comment Share on other sites More sharing options...
John Wick Posted September 17, 2017 Share Posted September 17, 2017 (edited) get the bars xy, go to widget debugger and check isVisible=yes just it. in code use widget interact "make x" or "make all" i dont remenber Edited September 17, 2017 by RuneMaker4657 Quote Link to comment Share on other sites More sharing options...
TheWind Posted September 17, 2017 Author Share Posted September 17, 2017 31 minutes ago, Kurisu said: try this RS2Widget barSelection = getWidgets().getWidgetContainingText("Bronze"); // Blurite, ... if (barSelection != null && barSelection.isVisible()){ if (barSelection.interact("Smelt X")){ //your conditional sleep } } Yah, I've been doing that. Even tried out your code. It doesn't work for choosing any of the options because the widget containing "Bronze" doesn't have the options in it if you look at the debugger. Neither does the widget below it which is larger. Quote Link to comment Share on other sites More sharing options...
Chris Posted September 17, 2017 Share Posted September 17, 2017 Take a look at Explvs example smitthing script in his guide im off to bed GL Quote Link to comment Share on other sites More sharing options...
Token Posted September 17, 2017 Share Posted September 17, 2017 You can actually find the widget through code if the widget debugger fails to find it due to many widgets being on top of each other. But do you really need to find the widget which has that action? Quote Link to comment Share on other sites More sharing options...
TheWind Posted September 17, 2017 Author Share Posted September 17, 2017 I'm actually an idiot... Thank you so much for the help. I'm just coming back to scripting in osrs and for some reason, I forgot that the interaction event required includes the word of the bar type so "Make X Bronze" instead of "Make X" for the specific Widget. I think I'll do just what you said with the Enum too. Hopefully, I can give back to the community somehow and thanks again! Quote Link to comment Share on other sites More sharing options...