Why does the repeat have to be there? It shouldn't have to be there.
I would find the color like this..
Simba Code:
procedure Squirt;
var
x, y:Integer;
begin
If FindColortolerance(x, y, 10066431, 371, 342, 431, 367,5) then
//the "5" is the tolerance.
begin
Mmouse(x,y,0,0);//SRL function, so we need to setupSRL in the main loop
wait(400);
clickmouse2(mouse_left);//SRL function, so we need to setupSRL in the main loop
end;
end;
begin//main loop
SetupSRL;
Squirt;//calling Squirt procedure
end.
That would work to find the color on the screen, move the mouse to the location and then click the left mouse button.
Feel free to pm me if my instructions aren't clear