const
color=00000;//the color to click
var
x,y : integer;
begin
if(FindColor(x,y,color,0,0,1027,1027))then
begin
moveMouse(x,y);
wait(300);
clicmouse(x,y,true);
end;
end.
if you want it for rs, DO NOT use that, it's detectable.
This will click on the color once. PM me if you want to make one that will keep clicking until your inventory is full or let me know if it's an autofigher.
Code:
Program ClickColor;
Procedure ClickTheColor;
var
x,y : integer;
begin
[B]if[/B] FindColorSpiralTolerance(x,y,yourcolorhere,MSX1,MSY1,MSX2,MSY2,10) then
begin
Mouse(x,y,2,2);
end else
begin
TerminateScript;
end;
end;
begin
SetupSrl;
ActivateClient;
ClickTheColor;
end.