kuhasu Posted May 4, 2008 Share Posted May 4, 2008 (edited) I\'ve done my best on the following code,can any buddy there help me to let the code run faster and point the errs within it pls?Thank you very much in advance!The following script take me 883 ms ,I wanna it be faster,And I wanna run 4 this kind of code at the same time,how?And if there r four codes(just different in $top,$bottom,$left,$right) ,I wanna run them at the same time ,how can I performe it?And I also ClipPut(\"$num\" & \"$num2\" & \"$num3\" & \"$num4\")Thank you! Edited May 19, 2008 by kuhasu Link to comment Share on other sites More sharing options...
kuhasu Posted May 4, 2008 Author Share Posted May 4, 2008 anybody there? I think I got some mistakes with func Link to comment Share on other sites More sharing options...
nobbe Posted May 4, 2008 Share Posted May 4, 2008 hi i am not shure anyone figures out what this script actually does or tries to do?? (too many variable names, all looks the same to me..?) maybe try to explain in more detail what you are trying to do BTW use "local" only after "func " started -... not as declaration on top of script "before" funcs.. Link to comment Share on other sites More sharing options...
kuhasu Posted May 5, 2008 Author Share Posted May 5, 2008 (edited) hii am not shure anyone figures out what this script actually does or tries to do?? (too many variable names, all looks the same to me..?)maybe try to explain in more detail what you are trying to do BTW use "local" only after "func " started -... not as declaration on top of script "before" funcs..Thanks man!It's a OCR programme to Numbersalmost all the variables are pixel axis.I think I encounter some problems in the FUNCs I defined.Can u give me an advice? Edited May 5, 2008 by kuhasu Link to comment Share on other sites More sharing options...
nobbe Posted May 5, 2008 Share Posted May 5, 2008 hi you need to read the help file about functions, its not difficult.. for ocr there are some samples here in the forum for a simple ocr , it could compare pixel for matches to a 2 dimensional array , $a[0][0]- $a[8][8] for example eg a setup for a character could be ****** *------* *------* *------* *------* *------* *------* ****** for eg. "0" : you get the idea ?.. Link to comment Share on other sites More sharing options...
kuhasu Posted May 5, 2008 Author Share Posted May 5, 2008 Thank you. I've modified my code and no errs now! Anyone can help me simplified it pls? And I wanna run four this kind of code at the same time,any ideas? THX Link to comment Share on other sites More sharing options...
kuhasu Posted May 5, 2008 Author Share Posted May 5, 2008 hii am not shure anyone figures out what this script actually does or tries to do?? (too many variable names, all looks the same to me..?)maybe try to explain in more detail what you are trying to do BTW use "local" only after "func " started -... not as declaration on top of script "before" funcs..hi there,u mean I'd better use "dim" to replace "local"?THX Link to comment Share on other sites More sharing options...
nobbe Posted May 5, 2008 Share Posted May 5, 2008 hi take a look here http://www.autoitscript.com/forum/index.php?showtopic=20251they have done some more on ocr.. Link to comment Share on other sites More sharing options...
kuhasu Posted May 5, 2008 Author Share Posted May 5, 2008 Thank u. I can be sure the way I'm doing for the condition I encounter is the best. I need a optimization for my script. "$X14>=$left AND $X14<=$right AND $Y16>=$top AND $Y16<=$bottom Then"--------------is there any shortcut fot comparing values?Actually I just make sure (x,y) in a matrix/retangle 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