By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

AutoIt PixelChecksum Function

Reference on the PixelChecksum Function of AutoIt - shows how to use the PixelChecksum function.

Edited: 2015-01-15 22:10

The AutoIt PixelChecksum Function generates a checksum for a region of pixels on the screen. It can also be used to scan for small "images" on the screen, read the Tutorial (coming soon) to learn how to do just that.

The checksum to be generated from the region can either be set to ADLER or CRC32.

Possible Values

pixelsLeft coordinate of rectangle.
pixelsTop coordinate of rectangle.
pixelsRight coordinate of rectangle.
pixelsBottom coordinate of rectangle.
stepOptional A value larger than 1 will pixels (for speed). I.e. A value of 2 will only checksum every other pixel.
hwndOptional Window handle to be used.
modeOptional Default 0 ADLER checksum, 1 CRC32 Checksum.

AutoIt PixelChecksum Example

$checksum = PixelChecksum(0,0, 50,50)

While $checksum = PixelChecksum(0,0, 50, 50)

MsgBox(0, "", "A change in the region was detected!")