Jump to content

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:

Sword

Armor

Boots

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...