This tutorial shows how to use UBot Studio to scrape a results field for a quantity that will be used in a Loop/Looping sequence.
Loops can be hard to understand at first but you will quickly master using it.
Please let me know in the comments how this video helped you.