BigDaddyO Posted July 26, 2017 Share Posted July 26, 2017 In the HP UFT automation tool, there is a function called TextUtil.GetTextLocation that I can use to find the exact x,y location of text inside a control. HP Help Doc I'm wondering if there is something similar to this in AutoIT? I have looked at OCR and Tesseract and they all seem to just give me the location inside the string of text on a control instead of Coordinates. Currently I'm using UFT as a driver script to get the location of the text and passing that to my AutoIT script as a command-line parameter in order to Redact that strings location, then take a screenshot. I'd much prefer to do this all in AutoIT. Thanks, Mike Link to comment Share on other sites More sharing options...
junkew Posted July 26, 2017 Share Posted July 26, 2017 You can choose in hp uft to use tesseract. What values do you get when you set that as ocr engine. I assume you can get the coordinates from tesseract directly also from AutoIt FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
junkew Posted July 27, 2017 Share Posted July 27, 2017 Search also with google for tesseract hocr example FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
jdelaney Posted July 27, 2017 Share Posted July 27, 2017 What is the text in. A control, a browser? If you narrow down where to find it, it's easier to grab. IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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