Jump to content

I hope I don't need to OCR this thing...


Recommended Posts

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 by everseeker

Everseeker

Link to comment
Share on other sites

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 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

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 BMP

This 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

Link to comment
Share on other sites

Maybe finding a bitmap (BMP) can help

Finding a BMP in another BMP

This 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

1. It's a standalone App... not a browser window

2. Can't Click on the field, so direct manipulation seems to be out

3. 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 McCarthy

Class: WindowsForms10.window.8.app.0.378734a

Position: -4, -4

Size: 1288, 968

Style: 0x17CF0000

ExStyle: 0x00050100

Handle: 0x00050566

>>>> Control <<<<

Class: WindowsForms10.EDIT.app.0.378734a

Instance: 66

ClassnameNN: WindowsForms10.EDIT.app.0.378734a66

ID: 133112

Text:

Position: 177, 503

Size: 156, 13

ControlClick Coords: 12, 9

Style: 0x560108C0

ExStyle: 0x00000000

Handle: 0x000207F8

>>>> Mouse <<<<

Position: 189, 538

Cursor ID: 5

Color: 0x000000

>>>> StatusBar <<<<

>>>> Visible Text <<<<

Change Profiles

Rate Sheets

My Information

Log Out

Manage Profiles

Track Quotes

Generate Quote

Customize and Compare

Confirm

Recalculate

PPO In Area Health/Life

View Benefit Details

$248.20

q

Total Premium

Life

$0.00

25000

25000

10 Year

10 Year

$0.00

25000

25000

10 Year

10 Year

Spouse Premium:

Primary Coverage:

Term:

Face Amount:

Spouse Coverage:

PrimaryPremium:

Term:

Face Amount:

Dental

$0.00

Dental Premiums:

Coverage Selected:

Health

$0

$0

$0.00

$500

$500

PRIMARY

No

80% Par / 60% Nonpar

Rx4

18.71

$25 Primary / $40 Specialty

NA

NA

Ded + $2000 (Single)/No Maximum (Family)

Choice Care

NA

NA

NA

$248.20

N/A

$0.00

NA

NA

Spouse 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:

SAB

All Applicants:

RX BuyUp

LifeTime Maximum

Total:

Mental Health

$206.83

N/A

$22.66

N/A

$248.20

N/A

Base Premium:

SAB

Primary:

RX BuyUp

LifeTime Maximum

Total:

Mental Health

$206.83

N/A

$22.66

N/A

$248.20

N/A

>>>> Hidden Text <<<<

Agency 1 Agents

(502)286-3856

X Close

Humana Agent ID: 8765432

FreeDate@papernapkin.com

Jumpupsville KY 40506

3003 East West St Limburg Lane Division

Patrick McCarthy

Create Quote

Rate Warnings Go Here!

Start Over

Get A Quote

Primary Zip Code

* Zip Code:

Products to Quote

Health (including all options)

Life Insurance Only

Primary Applicant Information

Yes, all applicants had prior coverage

No, all applicants did not have prior coverage

* Effective Date:

4/2/2008

* Last Name:

x

x

E-mail Address:

Day Phone Number:

Evening Phone Number:

Main Information

Remove

Select

Primary:

lbs

in

Select

ft

Remove

Select

Spouse:

lbs

in

Select

ft

RateUp

* First Name

* Gender

* Age or Birth Date

* Tobacco

Height

Weight

Physician Finder

View Underwriting Guidelines

Add Child

Prior Coverage

Current Insurance Company:

HSA Qualified

Lifetime 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

  • 10 months later...

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

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...