Hey everyone,
I'm trying to find a certain color in a box on the minimap. I am using the ScanMMAreaColorExactTolerance function, but it doesn't seem to be working for me.
Here is the code I'm using to test for the color...
Here is the function...Code:if(ScanMMAreaColorExactTolerance(xm, ym, 565, 60, 729, 146, 247, 7)) then begin mouse(xm, ym, 0, 0, true); end else begin writeln('Could not find that color, grrr!'); end
x1, y1, x2, y2 = Left, Top, Right, Bottom? Is that correct?function ScanMMAreaColorExactTolerance(var x, y: Integer; x1, y1, x2, y2, color, tolerance: Integer): Boolean;



Reply With Quote






! I wonder why ScanMMAreaColorExactTolerance didn't work though.
