everseeker Posted April 1, 2008 Share Posted April 1, 2008 (edited) Have a page full of little edit boxes... a "sea" of the little critters... (see attachment) I need to read the contents of one of them into a variable. But, although I can "see" that there's a value, the Text field is still showing "Blank"...... Do I need to capture the area and OCR it? or am I missing something? Edited April 1, 2008 by everseeker Everseeker Link to comment Share on other sites More sharing options...
ofLight Posted April 1, 2008 Share Posted April 1, 2008 (edited) I cant tell from the Pic weather thats a seperate app or a window within Firefox, but _INetGetSource might work ? EDIT: the more i look at it the more it looks like a stand alone app . Edited April 1, 2008 by ofLight There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
Oldschool Posted April 2, 2008 Share Posted April 2, 2008 Browsers OCR with high precision, and on such a large area it would be very easy using the MODI engine. (part of MSOffice)http://www.autoitscript.com/forum/index.ph...c=61714&hl=You could also use tesseract ocr engine, but it's slow on large areas, it is free though and you don't need MsOffice to run it. MODI would be better in this case probably. Link to comment Share on other sites More sharing options...
junkew Posted April 2, 2008 Share Posted April 2, 2008 Have a page full of little edit boxes... Do I need to capture the area and OCR it?or am I missing something?Maybe finding a bitmap (BMP) can help Finding a BMP in another BMPThis can work if your expected value is always the same. Will get more complicated if you don't know upfront the expected value. You could draw the expected text as a picture and try to find that but then MODI/OCR engine is more advicable.What are the other tabs of AU3INFO giving back?Can you copy paste manually the value with CTRL-C, CTRL-V.If so you can solve your problem by navigating the mouse to the area you want to check and do a mousemove and drag and finally send the keys to copy paste to clipboard and then you retrieve the value from the clipboard 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...
everseeker Posted April 2, 2008 Author Share Posted April 2, 2008 Maybe finding a bitmap (BMP) can helpFinding a BMP in another BMPThis can work if your expected value is always the same. Will get more complicated if you don't know upfront the expected value. You could draw the expected text as a picture and try to find that but then MODI/OCR engine is more advicable.What are the other tabs of AU3INFO giving back?Can you copy paste manually the value with CTRL-C, CTRL-V.If so you can solve your problem by navigating the mouse to the area you want to check and do a mousemove and drag and finally send the keys to copy paste to clipboard and then you retrieve the value from the clipboard1. It's a standalone App... not a browser window2. Can't Click on the field, so direct manipulation seems to be out3. Here's a full dump of the screen contents while attached to one of the edit boxes (there's 20+ of them... all acting the same)and yes, the data does appear in the collection of "Visible Text" but there's no way I can see to predict where in the collection the data will be... for all the windows...----Actually, is there a way to capture all the "visible Text" in an array?If I could, perhaps I could devise an algorithm to determine the correct cell.....from AutoIT Info:>>>> Window <<<<Title: Rate Calculator Patrick McCarthyClass: WindowsForms10.window.8.app.0.378734aPosition: -4, -4Size: 1288, 968Style: 0x17CF0000ExStyle: 0x00050100Handle: 0x00050566>>>> Control <<<<Class: WindowsForms10.EDIT.app.0.378734aInstance: 66ClassnameNN: WindowsForms10.EDIT.app.0.378734a66ID: 133112Text: Position: 177, 503Size: 156, 13ControlClick Coords: 12, 9Style: 0x560108C0ExStyle: 0x00000000Handle: 0x000207F8>>>> Mouse <<<<Position: 189, 538Cursor ID: 5Color: 0x000000>>>> StatusBar <<<<>>>> Visible Text <<<<Change ProfilesRate SheetsMy InformationLog OutManage ProfilesTrack QuotesGenerate QuoteCustomize and CompareConfirmRecalculatePPO In Area Health/LifeView Benefit Details$248.20qTotal PremiumLife$0.00250002500010 Year10 Year$0.00250002500010 Year10 YearSpouse Premium:Primary Coverage:Term:Face Amount:Spouse Coverage:PrimaryPremium:Term:Face Amount:Dental$0.00Dental Premiums:Coverage Selected:Health$0$0$0.00$500$500PRIMARY No80% Par / 60% NonparRx418.71$25 Primary / $40 SpecialtyNANADed + $2000 (Single)/No Maximum (Family)Choice CareNANANA$248.20N/A$0.00NANASpouse Life Rider:Single Family Deductible:HSA Qualified:Coinsurance:Rx Coverage:Rx Coverage Details:Office Visit Copay:Office Visit Copay Details:Lifetime Maximum:Maximum Out-of-Pocket:Network:Mental Health Benefit:Incentive Wellness:Supplemental Accident:Primary Life Rider:Primary Life Rider Amount:Health Premiums:Spouse Life Rider Amount:Covered:Base Premium:SABAll Applicants:RX BuyUpLifeTime MaximumTotal:Mental Health$206.83N/A$22.66N/A$248.20N/ABase Premium:SABPrimary:RX BuyUpLifeTime MaximumTotal:Mental Health$206.83N/A$22.66N/A$248.20N/A>>>> Hidden Text <<<<Agency 1 Agents(502)286-3856X CloseHumana Agent ID: 8765432FreeDate@papernapkin.comJumpupsville KY 405063003 East West St Limburg Lane DivisionPatrick McCarthyCreate QuoteRate Warnings Go Here!Start OverGet A QuotePrimary Zip Code* Zip Code:Products to QuoteHealth (including all options)Life Insurance OnlyPrimary Applicant InformationYes, all applicants had prior coverageNo, all applicants did not have prior coverage* Effective Date:4/2/2008* Last Name:xxE-mail Address:Day Phone Number:Evening Phone Number:Main InformationRemoveSelectPrimary:lbsinSelectftRemoveSelectSpouse:lbsinSelectftRateUp* First Name* Gender* Age or Birth Date* TobaccoHeightWeightPhysician FinderView Underwriting GuidelinesAdd ChildPrior CoverageCurrent Insurance Company:HSA QualifiedLifetime Maximum:Plan Total:CoInsurance:Network:Rx Coverage:Single Family Deductible:Maximum Out-of-Pocket:Include prior coverage in quote for comparison Everseeker Link to comment Share on other sites More sharing options...
everseeker Posted April 3, 2008 Author Share Posted April 3, 2008 So, no alternatives to OCR? Everseeker Link to comment Share on other sites More sharing options...
seangriffin Posted February 16, 2009 Share Posted February 16, 2009 Browsers OCR with high precision, and on such a large area it would be very easy using the MODI engine. (part of MSOffice) http://www.autoitscript.com/forum/index.ph...c=61714&hl= You could also use tesseract ocr engine, but it's slow on large areas, it is free though and you don't need MsOffice to run it. MODI would be better in this case probably. Click here to visit my Tesseract UDF. Cheers, Sean. See my other UDFs: Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax See my other Tools: Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia 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