If you write the script as such:
program AutoTyper;
{.include SRL/SRL.scar}
const
TypingTimes = 20;
var
i: Integer;
procedure Signature;
begin
ClearDebug;
writeln(' Snowcub AutoTyper by yours truely: ');
writeln(' ______________________ ');
writeln(' |____ _________ ___| ');
writeln(' | | | | ');
writeln(' ___ | | | | ');
writeln(' \ \| | | | ');
writeln(' \ | | | ');
writeln(' \____| |__| ');
wait(3000 + random(750));
end;
begin //made by Jacob Toms
SetupSRL;
Signature;
i:= 0;
repeat
i:= i + 1;
Wait(50+random(200));
TypeSend('Write Sentance Here');
if (i = TypingTimes) then
begin
Writeln('Script repeated the appropriate amount of times. Terminating...')
Exit;
end;
until(false);
end.
Note I added
const
TypingTimes = 20;
and
if (i = TypingTimes) then
begin
Writeln('Script repeated the appropriate amount of times. Terminating...')
Exit;
end;
The constant is something that is always the same, which I put as 20 in this case (explained later)
Now i put
if (i = TypingTimes)
then which means that if the sentance is said the amount of times you set in TypingTimes, 20 in this case, it will move onto another part.
Then i Put
begin
Writeln('Script repeated the appropriate amount of times. Terminating...')
Exit;
end;
Which means after it detects the script has types Message1 20 times, it will begin by writing "Script repeated.." in the debug box, then will exit the script.
Just something to stop it typing endlessly. =]