Zeta Matt
2013-02-10 16:59:08
begin
SetupSRL
ClearDebug;
if findcolortolerance(x, y, 65535, 745, 765, 817, 855, 4) or findcolortolerance(x, y, 65280, 745, 765, 817, 855, 4) then
begin
Playsound('c:\simba\alarm');
writeln('Your private chat is on, turn it off! ' + TheTime);
wait(2000);
StopSound;
end;
repeat
Detection;
until(r = 10);
end.It's a unnecessery question, but I'd like to know why this MainLoop works if I write "Detection" without the ";"? like this:
begin
SetupSRL
ClearDebug;
if findcolortolerance(x, y, 65535, 745, 765, 817, 855, 4) or findcolortolerance(x, y, 65280, 745, 765, 817, 855, 4) then
begin
Playsound('c:\simba\alarm');
writeln('Your private chat is on, turn it off! ' + TheTime);
wait(2000);
StopSound;
end;
repeat
Detection
until(r = 10);
end. What would be the difference?