Checksum related code
Page 1 of 1 • Share •
Checksum related code
Ok I'll start
Im looking for a code akin to the regular pixelchecksum function
That function will create a checksum based on the coords and step parameter you define
I would love a function to create a checksum based on irregular pixels in the coords
eg: _IrrPixelChecksum(200,200,210,210,6,9,13,22,40,55,78,90)
Whereby the red params are the pixels relative to coords first pixel in the 100 pixel rectangle area defined.
I would really appreciate seeing something like this, but alas the pixelchecksum function is inbuilt to autoit and I cant even study it to see if it could be modded (not that I could anyway) or would be allowed to
If this is not the kind of thing allowed here, please feel free to delete it
Im looking for a code akin to the regular pixelchecksum function
That function will create a checksum based on the coords and step parameter you define
I would love a function to create a checksum based on irregular pixels in the coords
eg: _IrrPixelChecksum(200,200,210,210,6,9,13,22,40,55,78,90)
Whereby the red params are the pixels relative to coords first pixel in the 100 pixel rectangle area defined.
I would really appreciate seeing something like this, but alas the pixelchecksum function is inbuilt to autoit and I cant even study it to see if it could be modded (not that I could anyway) or would be allowed to
If this is not the kind of thing allowed here, please feel free to delete it
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
Can you explain a little differently? I take it you want to check only certain pixels. For example generate a check sum checking every other pixel.

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
P5ych0Gigabyte wrote:Can you explain a little differently? I take it you want to check only certain pixels. For example generate a check sum checking every other pixel.
OK i get it now. I'm gonna see if I can write a little function for you.

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
Normal pixelchecksum will create a checksum with a step value of a defined amount of pixels skipped
The optional step value like PixelChecksum(200,200,210,210,2) will only check every other pixel from left to right, top to bottom, if you use 3 it will check every third pixel
Im after a function where I can define the exact pixels it will use
Cheers for your reply
The optional step value like PixelChecksum(200,200,210,210,2) will only check every other pixel from left to right, top to bottom, if you use 3 it will check every third pixel
Im after a function where I can define the exact pixels it will use
Cheers for your reply
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
Give this a try. I wrote a function to do the task that you asked for. It however takes an array as the coords. It also requires the md5.au3 to generate checksum. Download

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
Very much appreciated my friend
Will have a look now
Will have a look now
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
Working fine mate, thanks very much.
I'm supposing I could expand or deflate the array size, is this correct ?
Do you think their would be limitations to its elements ?
I'm supposing I could expand or deflate the array size, is this correct ?
Do you think their would be limitations to its elements ?
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
Billy wrote:Working fine mate, thanks very much.
I'm supposing I could expand or deflate the array size, is this correct ?
Do you think their would be limitations to its elements ?
Yes you can change the size of the array just make sure it is has the same format as the one i used. For example , you could do dim $Array[10][2] and then you would have ten pixels to check.

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
I have improved the code to use the Crypt.au3 from the latest beta. Download

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
Wow, thanks matey.
Love the logic you done in this.
Excellent.
Love the logic you done in this.
Excellent.
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
No problem. Glad to see the site getting some use. =)

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Re: Checksum related code
P5ych0Gigabyte wrote:Billy wrote:Working fine mate, thanks very much.
I'm supposing I could expand or deflate the array size, is this correct ?
Do you think their would be limitations to its elements ?
Yes you can change the size of the array just make sure it is has the same format as the one i used. For example , you could do dim $Array[10][2] and then you would have ten pixels to check.
Ahh, just noticed after this post
I thought I was checking 8 pixels, no wonder I wasent getting the results I expected
Are the groups of 2
$Array[0][0]=6
$Array[0][1]=9
$Array[1][0]=13
$Array[1][1]=22
$Array[2][0]=40
$Array[2][1]=55
$Array[3][0]=78
$Array[3][1]=90
Reletive coordinates in the rectangle ?
eg
$Array[0][0]=o
$Array[0][1]=0
Would be the first pixel (top left) in the rectangle ?
Billy- Posts: 6
Join date: 2009-10-22
Re: Checksum related code
yes they are relative coordinates.

P5ych0Gigabyte- Admin
- Posts: 27
Join date: 2009-10-21
Location: New Jersey,USA

Permissions of this forum:
You cannot reply to topics in this forum



