CySt Posted April 15, 2007 Share Posted April 15, 2007 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 and they go from 0-9. Any advice and pointers would be a great help, thanks! Link to comment Share on other sites More sharing options...
Zedna Posted April 15, 2007 Share Posted April 15, 2007 Search for OCR - optical character recognition Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
CySt Posted April 15, 2007 Author Share Posted April 15, 2007 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 Link to comment Share on other sites More sharing options...
CySt Posted April 16, 2007 Author Share Posted April 16, 2007 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 Link to comment Share on other sites More sharing options...
SleepyXtreme Posted April 16, 2007 Share Posted April 16, 2007 (edited) You can easily do that by doing a simple if statement lol If $pixels = 5 then send("1") endif no? Edited April 16, 2007 by SleepyXtreme Link to comment Share on other sites More sharing options...
CySt Posted April 16, 2007 Author Share Posted April 16, 2007 that would make sense x.x, lol thanks ill try it Link to comment Share on other sites More sharing options...
CySt Posted April 16, 2007 Author Share Posted April 16, 2007 (edited) 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 April 16, 2007 by CySt 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