I am currently trying to script on an RSPS (ProjectRS06) and I followed a tutorial on this website.
Simba Code:
Program ChopTree;
{$i srl/srl.simba}
Procedure ClickTree;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 3166827 , 370, 177, 382, 208, 5) then
begin
mmouse(x, y,1,1); // moves the mouse to were the color is found
wait(250); // waits one fourth of a second
ClickMouse(X, Y, mouse_Left)// clicks
end;
end;
begin
SetupSRL;
end.
That was the code I ended up with, but whenever I execute it, nothing happens.
It tells me it was successfully executed, though.