Hello,
I am trying to write a script that simply hoovers over a screen if it finds the color and then left clicks on that color. Currently, the script is faililng at compile time.
Please help.
Error:
Code:
Error: Don't know which overloaded method to call with params (Int32, Int32, Int32, Int32, Int32, Int32, Int32) at line 7
Compiling failed.
Code:
Code:
{$I srl-6/srl.simba}
Procedure getPlank;
var
X,Y:Integer;
begin
if FindColorTolerance(X, Y, 874871, 15, 68, 502, 0) then
begin
mouse(x, y,5,5);
wait(250);
ClickMouse(X, Y, mouse_Left)
end;
end;
Begin
SetupSRL;
getPlank;
end.