It compiles, but it doesn't move the mouse to the actual point?
It doesn't make any sense. I've highlighted the game client. Set the coords of the color tolerance to the client window, and it compiles just fine. The only problem is that it doesn't even move the mouse?
Code:
Program AtaTinMiner;
{$i srl-6/srl.simba}
Procedure ClickTin
var
X,Y:Integer;
begin
if findColorTolerance(X,Y,7631997,5,4,865,681,1) then
begin
moveMouse(X,Y); //moves the mouse to the coordinates of the found point
wait(100); //waits 1/10 of a second
clickMouse(X,Y,1); //clicks the left-side of the mouse
end;
end;
Begin
MouseSpeed := 15;
end.