Sign in to follow this  
Followers 0
asym

Read Text Data

6 posts in this topic

Is it possible to make a script that reads or copies or does something to a text data and is able to analyze it like OCR

Im taling about copying a number from a webpage and analyze it and if its < X it does a designed action, because the number is something like a counter and its allways changing but its "copy able"

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I never had any luck with OCR, i always had to use a pixel search, if you want OCR have the system do a screen shot and somehow get Microsoft document imaging to OCR it for ya, and then copy the text and as you please.

I know its kinda a long shot, just i had no luck with OCR but that one.

Edited by Scrippter

Share this post


Link to post
Share on other sites

Is the number an image or text?


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

Is the number an image or text?

Sorry for the delay...

The number is a kind of a dynamic text... Its like a counter but its in text format you can copy it like you usually do

Share this post


Link to post
Share on other sites

Hello kaneco,

There are 2 options that I know of:

1. Use _InetGetSource() with the INET.au3 UDF to download the source of the webpage, and use StringRegExp() to extract the data.

2. Use _IEBodyReadText with the IE.au3 UDF to download the readable text from the webpage, or _IEBodyReadHTML to download the HTML, and again use StringRegExp() to extract the data.

Realm


My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.  

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