SRL Archive - OSR Help

While .. do


fre

2012-01-26 12:16:59

This while code does not work.
It writeln everytime, even if the text is not up…

How does this come?


While (not IsUpTextMultiCustom(['somethingiwaitforuntilitisuptext'])) do
MMouse(299,163,10,20);
writeln(getuptext);
wait(500);

EDIT:
i just figuered out that with IsUpText it DOES work…

Ty

RISK

2012-01-26 12:18:55

procedure Example;
begin
while (IsUpTextMultiCustom([''])) do
begin
WriteLn('This is a line.');
Wait(RandomRange(350, 750));
end;
end;

It's because you had a 'not' in your original example. It would repeat the line over and over again because you had it to do that if it didn't find the text.

bg5

2012-01-26 12:20:02

in while loop was only MMouse. Use begin end;

While (not IsUpTextMultiCustom(['somethingiwaitforuntilitisuptext']))  do
begin
MMouse(299,163,10,20);
writeln(getuptext);
wait(500);
end;