hisbigego Posted February 2, 2008 Share Posted February 2, 2008 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 meThis 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 unitsPrice: 391 unitsThank you for any help in advance... Link to comment Share on other sites More sharing options...
hisbigego Posted February 2, 2008 Author Share Posted February 2, 2008 Does anyone know how to solve this problem? Please help... Link to comment Share on other sites More sharing options...
whim Posted February 2, 2008 Share Posted February 2, 2008 Lookup WinGetText in the the helpfile Link to comment Share on other sites More sharing options...
GEOSoft Posted February 2, 2008 Share Posted February 2, 2008 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. George 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:3.0.1.13) - 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!" Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now