dufran3 Posted May 2, 2011 Share Posted May 2, 2011 Was playing around with some things. Not sure if this is useful to anyone or not. Just thought I would throw it out there. #include <GUIConstantsEx.au3> #include <StaticConstants.au3> Opt('PixelCoordMode',1) _PixelScan(504,215,519,229) ;topleft x, topleft y, bottomright x, bottomright y Func _PixelScan($left, $top, $right, $bottom) $PixelCount = Abs($left - $right) Dim $aPixelMap[$PixelCount + 1][3] $aPixelMap[$PixelCount][0] = Ubound($aPixelMap) ConsoleWrite('Total number of pixels to check: ' &$aPixelMap[$PixelCount][0] & @LF) For $i = 0 to $aPixelMap[$PixelCount][0] -1 $x = $left + $i $y = $top + $i $aPixelMap[$i][0] = Hex(PixelGetColor($x, $y),6) $aPixelMap[$i][1] = $x $aPixelMap[$i][2] = $y ConsoleWrite('Pixel at: ' & $aPixelMap[$i][1] & ',' & $aPixelMap[$i][2] & ' has color ' & $aPixelMap[$i][0] & @LF) NExt EndFunc Link to comment Share on other sites More sharing options...
JScript Posted May 2, 2011 Share Posted May 2, 2011 Do not worry too much about what you made will be useful or not! Be sure: one day someone will need... Thanks for sharing! http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
JScript Posted May 2, 2011 Share Posted May 2, 2011 It would be better? $PixelCount = Abs($left - $right) + Abs($top - $bottom) http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!) Somewhere Out ThereJames Ingram Download Dropbox - Simplify your life!Your virtual HD wherever you go, anywhere! Link to comment Share on other sites More sharing options...
Blue_Drache Posted May 2, 2011 Share Posted May 2, 2011 It looks familiar... http://www.autoitscript.com/autoit3/docs/functions/PixelChecksum.htm Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
dufran3 Posted May 2, 2011 Author Share Posted May 2, 2011 It looks familiar...http://www.autoitscript.com/autoit3/docs/functions/PixelChecksum.htmyour right, I was looking for something to read the pixel color at each location, pixelchecksum didn't work. So I didn't rip it off, I knew it existed already... 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