Mouse(x,y,ranx,rany,true) is SRL's command to click mouse.
I also added it to look if there's up text "Dummy".
SCAR Code:
program DummyPwner;
{.include SRL/SRL.scar}
//Camera at highest point must be in the dummy training place.
Procedure locatedummy;
begin
if(FindColorSpiral(x,y,8364218,MMX1,MMY1,MMX2,MMY2)) Then
begin
MMouse(x,y,0,0)
If(IsUpText('ummy'))then
writeln('Found Dummy');
end else
writeln('Didnt Find Dummy');
end;
procedure attackdummy;
begin
getmousepos(x,y)
Mouse(x,y,2,2,True);
end;
begin
SetupSRL;
locatedummy;
attackdummy;
end.