Finding color in a box on MM?
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...
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
Here is the function...
Quote:
function ScanMMAreaColorExactTolerance(var x, y: Integer; x1, y1, x2, y2, color, tolerance: Integer): Boolean;
x1, y1, x2, y2 = Left, Top, Right, Bottom? Is that correct?