alqqu Posted April 12, 2019 Share Posted April 12, 2019 (edited) ??? i think i have the right imports 2nd example... wtf Edited April 12, 2019 by alqqu Quote Link to comment Share on other sites More sharing options...
Lordsthan Posted April 12, 2019 Share Posted April 12, 2019 Both methods containingActions and containingSprite return a List<RS2Widget>. Read more at https://osbot.org/api/org/osbot/rs07/api/Widgets.html Quote Link to comment Share on other sites More sharing options...
alqqu Posted April 12, 2019 Author Share Posted April 12, 2019 On 4/12/2019 at 3:53 PM, Lordsthan said: Both methods containingActions and containingSprite return a List<RS2Widget>. Read more at https://osbot.org/api/org/osbot/rs07/api/Widgets.html Expand List<RS2Widget> test = getWidgets().containingActions(269, "test"); like this? but i cant interact with "test" at all since its a list? Quote Link to comment Share on other sites More sharing options...
Lordsthan Posted April 12, 2019 Share Posted April 12, 2019 On 4/12/2019 at 4:17 PM, alqqu said: List<RS2Widget> test = getWidgets().containingActions(269, "test"); like this? but i cant interact with "test" at all since its a list? Expand Yes, you can't. Instead, you need to interact with the first element. Quote Link to comment Share on other sites More sharing options...
HeyImJamie Posted April 12, 2019 Share Posted April 12, 2019 Go learn a little Java and then come back. Save yourself a world of trouble Quote Link to comment Share on other sites More sharing options...
Imthabawse Posted April 12, 2019 Share Posted April 12, 2019 Go check out the Tutorial section and take a look at @Explv's scripting tutorial helped me out a lot. Quote Link to comment Share on other sites More sharing options...
Night Posted April 12, 2019 Share Posted April 12, 2019 On 4/12/2019 at 5:20 PM, HeyImJamie said: Go learn a little Java and then come back. Save yourself a world of trouble Expand Quote Link to comment Share on other sites More sharing options...