mrbig1479 Posted July 21, 2008 Share Posted July 21, 2008 Hi I wanted to make a hashtable function to read an area (the square that define the area can change , however the color for the area is black, every pixel in it has a color of 0x000000 ) I was assuming that no matter what area i would pick the pixelchecksum would be the same , however its not I was wondering why is that ? can someone care to explain and solve me the mystery... (thanks) Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 The checksum is based off of all of the parameters of the region, not just color. It is used to check to see if the same area has changed. Because of this, a different area will have a different checksum, regardless of if it is "similar" in regards to color or shape, because it is in fact a different area Regards,Josh Link to comment Share on other sites More sharing options...
mrbig1479 Posted July 21, 2008 Author Share Posted July 21, 2008 The checksum is based off of all of the parameters of the region, not just color. It is used to check to see if the same area has changed.Because of this, a different area will have a different checksum, regardless of if it is "similar" in regards to color or shape, because it is in fact a different areahmmso if i use the same area ( meaning 20pixel area can be 4X5 or 5x4 or 10X2 or any other combination it will give me the same pixelchecksum >?) Link to comment Share on other sites More sharing options...
JFee Posted July 21, 2008 Share Posted July 21, 2008 Not mathematical area... I should've used the word "region" Regards,Josh Link to comment Share on other sites More sharing options...
mrbig1479 Posted July 21, 2008 Author Share Posted July 21, 2008 Not mathematical area... I should've used the word "region"well i tested the mathematical area thing , and it is working i tested a few area (same "mathematical area" on a total black backround and it gives the same pixelchecksum , i juess its a mathematical function after all muttleynow i have a problem ...... Link to comment Share on other sites More sharing options...
junkew Posted July 21, 2008 Share Posted July 21, 2008 Pixelchecksum will return value based on the colors in the region. If they are equal it will return the same checksum Below script will return 2 times the same checksum where checking 2 different areas (make sure upper left of the screen has same colors) $checksum = PixelChecksum(0,0, 1,1) consolewrite($checksum & @CRLF) $checksum = PixelChecksum(1,1, 2,2) consolewrite($checksum & @CRLF) FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets Link to comment Share on other sites More sharing options...
ofLight Posted July 21, 2008 Share Posted July 21, 2008 Where on the screen the checksum was grabbed shouldnt matter. You can for instance grab a checksum on a folder Icon off your desktop, then move the folder to a different location and find it using the same checksum. There is always a butthead in the crowd, no matter how hard one tries to keep them out.......Volly Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now