
Originally Posted by
rikjess
When you use Mouse and MMouse have {.include srl/srl.scar} included and on the begin of you're main loop call: SetUpSRl;
SCAR Code:
program new;
{.include srl/srl.scar}
var
x, y: integer;
procedure FindColorAndClick;
findcolor(x, y, 1337, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
Mouse(x, y, 0, 0); //moves mouse and clicks on color
end;
begin
SetUpSrl;
FindColorAndClick;
end.
SCAR Code:
program new;
{.include srl/srl.scar}
var
x, y: integer;
procedure FindColorAndClick;
begin
findcolor(x, y, 1337, 100, 100, 100, 100); //Stores co-ordinates of color at x and y
Mouse(x, y, 0, 0, true); //moves mouse and clicks on color
end;
begin
SetUpSrl;
FindColorAndClick;
end.
Corrected
. Missed the boolean for left click
and begin in the procedure