Jump to content
Sign in to follow this  

Finding the Position of certain text within a ControlID

Recommended Posts


I'm fairly new to AutoIT and coding in general so I apologize if this is a really stupid question. The script I am trying to write should open up a treasure list within a game to scroll down it and check for a certain item. So far I've only managed to get the script to get to and activate the item list, so for example purposes say the list is:




And for this example say I am attempting to only pick up the boots before exiting the list, I'm guessing you'd use the ControlGetText function to actually check to make sure Boots are on the window's list? Then from there how would you be able to get the script to find the X,Y cords of the text "Boots" within the window to right click them and pick them up?

If anyone would be able to explain this to me I'd be very grateful, I've tried looking through the help file and few tutorials and am still completely stumped.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this