Jump to content

PixelCheckSum count


Rizzet
 Share

Recommended Posts

Hi im trying to Count every time a pixel gets 1 color... but my script only counts 1 time.. i tested diffrent ways, i dont realy get how pixelchecksum works.. so if any1 could help me it would be nice

i have also searched for same kind but cant get it.

While 1
 $PGC11 = PixelGetColor(14,718)
  GUICtrlSetBkColor($output, $PGC11) ;debugger
    If $cs4 = not PixelCheckSum(14,718,14,718) then ;
        $fail = $fail + 1
        GUICtrlSetData($m2, $fail)
    $cs4 = PixelCheckSum(14,718,14,718)
    Endif
Wend
Edited by Rizzet
Link to comment
Share on other sites

  • Moderators

Trying to make an OCR?

There is no PixelCheckSum by color.

This is as close as you'll come without using PixelGetColor() for every pixel.

http://www.autoitscript.com/forum/index.ph...st&p=266683

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

No. the PixelGetColor in the code is just a debugger as i wrote in it, i just want to c if that pixel is changing.. if it do i want to count every change. like fors from red to green, then from green to blue, etc

Edit: I would also like to know what the PixelCheckSum returns? if change an @error? or a 0, or what?

Edited by Rizzet
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...