alqqu Posted April 12, 2019 Posted April 12, 2019 (edited) ??? i think i have the right imports 2nd example... wtf Edited April 12, 2019 by alqqu
Lordsthan Posted April 12, 2019 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
alqqu Posted April 12, 2019 Author 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?
Lordsthan Posted April 12, 2019 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.
HeyImJamie Posted April 12, 2019 Posted April 12, 2019 Go learn a little Java and then come back. Save yourself a world of trouble
Imthabawse Posted April 12, 2019 Posted April 12, 2019 Go check out the Tutorial section and take a look at @Explv's scripting tutorial helped me out a lot.
Night Posted April 12, 2019 Posted April 12, 2019 4 hours ago, HeyImJamie said: Go learn a little Java and then come back. Save yourself a world of trouble