Harry
2011-10-16 08:22:24
function R_IsUpTextMulti(UpText: TStringArray): Boolean;
var
I, T: integer;
UT: String;
begin
Result := False;
MarkTime(T);
while(UT = '')do
begin
UT := R_GetUpText;
if(TimeFromMark(T) > 1000)then
Exit;
Wait(5+Random(10));
end;
for I := 0 to High(UpText) do
begin
Result := Pos(Trim(Lowercase(UpText[I])), UT) > 0;
if Result then Exit;
end;
end;Here's a better version. All I did was reduce the wait timer. The old one waits muuuuch too long.