I am using PixelSearch with color of 0xD89840 and range 15 and get back color AE7134
also color D8A040 range 15 color received BC8F45
also color FFFFFF range 0 color received 876455
I am running W7 64bit and version 3.3.8.1
It looks to me like the range process is not working very well.
If search was for FFFFFF and range was 0 ie exact color required why did I get a color found and returned that was not FFFFFF?
code snipit is:
-------------------------------------------
$coord = PixelSearch($homex-23,$homey,$homex+19,$homey+15,0xFFFFFF,0,1)
if not @error Then
_DebugOut("CheckDamage6: x=" & $coord[0] & ",y=" & $coord[1] & ",pixel=" & Hex(PixelgetColor($coord[0],$coord[1]),6))
$ReceivingDamage = True
EndIf
-------------------------------------------