Jump to content
Sign in to follow this  

Reading text via autoit?

Recommended Posts

Hi guys, this is my first post...

I have made a few autoit programs and wanted to add more functionality to them...

For this however, I need autoit to somehow read text on a screen and do the appropriate action.

For example I was making a selling macro for an mmo, where when I am not online my shop can still respond to peoples request.

I will give you an arbitrary example:

Customer: Are you willing to bargain?

(My autoit bot detects the word 'bargain' and responds)

Me: If you want to bargain on any item pm me

This would also be useful on web pages when comparing the price of things, where the bot scans the prices and detrmines the cheapest one.

I did a search on 'read text' in the forums and found one thread using a function that gets the text between two strings and stores it as a variable. However what if there is list of many of these strings all identical except for the theing betwen them. For example:

Price: 390 units

Price: 391 units

Thank you for any help in advance...

Share this post

Link to post
Share on other sites

Does anyone know how to solve this problem?

Please help...

I would suggest that you start with User Defined functions >> IE management in the help file and pay particular attention to _IEBodyReadText(). Once you have the text there are a few methods that will work. Once you are able to get the text post back and someone can help you from there.


Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver: - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...