Jump to content
Sign in to follow this  

Pixelchecksum on an image area

Recommended Posts


Hi, I'm trying to make my program recognize an image that is part of a bigger image.

the bigger image will be dynamic, and the part of the image that i want to match, might not be there all the time.

example: i have a picture that's 10 x 10 pixel, and i wanna scan it 2x2 pieces at a time, until one of the 2x2 scans matched up with the pixel count or image i want.

goal: to make my mouse click on the image IF the desired image is found.

$IQ = pixelchecksum(28,192,39,195);;;;;;; scans a Certain area

        If $IQ = 2975549012 then  ;;;;;;;;;; desired image pixel count
            $Modifier = 5
        ElseIf $IQ = 4109728171 Then;;;;;;;;;; desired image pixel count
            $Modifier = 4
            $Modifier = 0

        If $Modifier >= 4 Then
            mouseclick("Left", 80,195);;;;;;;;;clicks on image

my script here so far, only scans 11 by 3, and its the same 11x3 everytime.. the actual whole bigger picture that could be scanned, is something like 30x5.

any idea how to make the script scan different parts of the picture until it finds the desired image?


Edited by DNnlee

Share this post

Link to post
Share on other sites

If the image you are searching for always look the same try the "Image Search Library"

the desired images will always look the same, but might appear at different locations of the screen,

and MIGHT be TRANSPARENT and have another undesired image UNDER it to trick my script...

so this imagesearch should be able to find it still right? if so thanks XD

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