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 1 hour ago, Lordsthan said: Both methods containingActions and containingSprite return a List<RS2Widget>. Read more at https://osbot.org/api/org/osbot/rs07/api/Widgets.html 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 42 minutes ago, alqqu said: List<RS2Widget> test = getWidgets().containingActions(269, "test"); like this? but i cant interact with "test" at all since its a list? 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 4 hours ago, HeyImJamie said: 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...