You mean like
//Finds a color and clicks on it
program test;
{.include SRL\SRL.scar}
const
color = 6666; //color
tol = 66; //tolerance
var x,y,xs,ys,xe,ye: Integer;
procedure findimage;
begin
if Findcolortolerance(x,y,color,xs,ys,xe,ye,tol) then
begin
mouse(x,y,0,0,true);
end;
end;
begin
SetupSRL;
findimage;
end.
EDIT: Oh, wait you want to click on a single image of a bunch of colors? You might need to make a DTM for that.
In which case it would be
program test;
{.include SRL\SRL.scar}
var x,y: Integer;
procedure findimage;
begin
image := DTMFromString({dtm here});
if FindDTM(image,x,y,x1,y1,x2,y2);
begin
mouse(x,y,0,0,true);
end;
end;
begin
SetupSRL;
findimage;
end.