Jump to content
Sign in to follow this  
CySt

Copy a number on an image to a text field, help please

Recommended Posts

CySt

Just joined the forums, but I have been making little scripts for awhile now.

I am trying to have my script copy a number from an image then put that in a text field. I have searched around and am confused on how exactly I could do this.

The number images look like this Posted Image and they go from 0-9. Any advice and pointers would be a great help, thanks!

Share this post


Link to post
Share on other sites
CySt

I have already searched for OCR because just about every post I see after I search says search for it...

if looked at some scripts but I am confused on where to start

Share this post


Link to post
Share on other sites
CySt

Ok, so I have figured out how to have my script see how many pixels there are for the number on the image, how can i have my script send() the right number? like lets say an image with a 1 on it would have 5 pixels, how could i have it send a 1 once it knows that it has 5 pixels? any help is appreciated

Share this post


Link to post
Share on other sites
SleepyXtreme

You can easily do that by doing a simple if statement lol

If $pixels = 5 then

send("1")

endif

no?

Edited by SleepyXtreme

Share this post


Link to post
Share on other sites
CySt

Ok, so I have everything working. I can get the number then have it typed. My problem is that there are 6 different images. I use _PixelGetColorCount() and I am only able to use a function once. What should I do?

EDIT: Nevermind, fixed it.

Edited by CySt

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.