Now instead of using 'findmscolortol' we manually use the coordinates for the main screen.
Which are:
MSX1, MSY1
MSX2, MSY2
So to find a color on the main screen and use Mouse/MMouse it'd look like this:
SCAR Code:
program New;
{.include SRL/SRL.scar}
var
x, y : Integer;
begin
if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, tolerance) then
MMouse(x, y, 0, 0);
//will move mouse to the color
if FindColorSpiralTolerance(x, y, color, MSX1, MSY1, MSX2, MSY2, tolerance) then
Mouse(x, y, 0, 0, True);
//will click the color(True will left click; False will right click)
end.
(Of course enter your color and tolerance integers into that)