Jump to content

strange "682286"


Recommended Posts

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    $first_point[0] = $first_point[0] + ( -73 )
    $first_point[1] = $first_point[1] + ( 79 )
    $string = ocr_string( $first_point, 50 )
    MsgBox ( 0, "raw string", $string )
    $matches = StringRegExp($string, '[^0]{1,}', 3)
    ;_ArrayDisplay($matches, 'found')
    ;MsgBox ( 0, "title",   $matches[0] )
    For $loop = 0 To UBound ( $matches ) - 1
        $display_string = $display_string & check_definition( $matches[$loop] )
    Next
    $x = $display_string
    $loop = 0
    $display_string = ""
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    $first_point[0] = $first_point[0] + ( 55 )
    $string = ocr_string( $first_point, 40 )
    $matches = StringRegExp($string, '[^0]{1,}', 3)
    
    For $loop = 0 To UBound ( $matches ) - 1
        $display_string = $display_string & check_definition( $matches[$loop] )
    Next
    $y = $display_string
    $loop = 0
    $display_string = ""
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    $first_point[0] = $first_point[0] + ( 50 )


    $string = ocr_string( $first_point, 50 )
    $matches = StringRegExp($string, '[^0]{1,}', 3)

    For $loop = 0 To UBound ( $matches ) - 1
        $display_string = $display_string & check_definition( $matches[$loop] )
    Next
    
    $z = $display_string
    
    $loop = 0
    $display_string = ""
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oÝ÷ ÚØb±û§rب¦è½çW¶ºw-ìméhÁ«­¢+ÙÕ¹%½É}ÍÑÉ¥¹ ÀÌØí¥ÉÍÑ}Á½¥¹Ð°ÀÌØíݥѡ}ѽ}¡¬¤(%1½°ÀÌØíÍÑÉ¥¹($(%1½°ÀÌØíá}½ÍÐôÀ(%1½°ÀÌØíå}½ÍÐôÀ(%1½°ÀÌØí½àôÀ($(%¼($%¼(($$ÀÌØí½±½É}½É}͵Á±ôA¥á±Ñ
½±½È  ÀÌØí¥ÉÍÑ}Á½¥¹ÑlÁt¬ÀÌØíá}½ÍФ° ÀÌØí¥ÉÍÑ}Á½¥¹ÑlÅt¬ÀÌØíå}½ÍФ¤($$($$ÀÌØíÉô}
½±½ÉÑI ÀÌØí½±½É}½É}͵Á±¤($$ÀÌØíɸô}
½±½ÉÑɸ ÀÌØí½±½É}½É}͵Á±¤($$ÀÌØí±Õô}
½±½ÉÑ  ±Õ ÀÌØí½±½É}½É}͵Á±¤($$$($$%%ÀÌØíɸÐìÀÌØíÉ9ÀÌØíɸÐìÀÌØí±ÕQ¡¸($$$$ÀÌØí½àôÀÌØí½à¬Ä($$$%¹%(($$$ÀÌØíå}½ÍÐôÀÌØíå}½ÍдÄ($%U¹Ñ¥°ÀÌØíå}½ÍÐô´ÄÀ($$$(($$$($$ÀÌØíå}½ÍÐôÀ($$ÀÌØíÍÑÉ¥¹ôÀÌØíÍÑÉ¥¹µÀìÀÌØí½à($$ÀÌØíá}½ÍÐôÀÌØíá}½ÍЬÄ($$ÀÌØí½àôÀ($$$(%U¹Ñ¥°ÀÌØíá}½ÍÐôÀÌØíݥѡ}ѽ}¡¬((%IÑÕɸÀÌØíÍÑÉ¥¹)¹Õ¹(($)Õ¹¡­}¥¹¥Ñ¥½¸ ÀÌØíÍÑÉ¥¹¤($((%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÄÄÄÄÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½Ðì´ÅÕ½Ðì(%¹%($(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÔàÈÈàÔÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÀÅÕ½Ðì(%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÈààÄÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÄÅÕ½Ðì($%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÌÔÐÐÔÌÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÈÅÕ½Ðì(%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÈÐÌÌàÔÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÌÅÕ½Ðì($%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÈÈÈÜàÄÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÐÅÕ½Ðì(%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÄØÔÌØÐÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÔÅÕ½Ðì($%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÔÜÐÌØÌÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìØÅÕ½Ðì(%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÄÌÔÔÐÈÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìÜÅÕ½Ðì($%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÔàÌÌàÔÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìàÅÕ½Ðì(%¹%(%%ÀÌØíÍÑÉ¥¹ôôÅÕ½ÐìÌØÌÐÜÔÅÕ½Ðì%Q¡¸($%IÑÕɸÅÕ½ÐìäÅÕ½Ðì($%¹%((%5Í    ½à À°ÅÕ½ÐíÑ¡É¥ÌÍÑÉ¥¹Ñ¡Ð¥¸ÌäíХй䥹¥Ñ¥½¸ÅÕ½Ðì°ÀÌØíÍÑÉ¥¹¤()¹Õ¹

y and z works fine, yet x often returns 682286, for some rreason

please correct me :)

Link to comment
Share on other sites

Hi, just regarding the following line of code

$first_point[0] = $first_point[0] + ( -73 )

If you haven't initialised the array to something greater then 72 then you will obviously have a negative value stored in $firstpoint[0]. You are then sending that negative value to pixelgetcolor(). I think this may be the reason you are getting invalid results.

Dave

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------"I don't need to know everything, I just need to know where to find it when I need it"....EinsteinAnd in our case... That's the AutoIT helpfile ;) Please read before posting!!!

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