WT-Fakawi
2006-06-09 16:34:54
WWait waits the amount of time + random 10% and will once every ten calls move the mouse using IdleTime instead of waiting. Nice small and efective AntiBan routine. I always use this aot Wait.
{*******************************************************************************
procedure WWait(ttime: Integer);
By:
Description: Waits Time+10%. Once every ten times performs IdleTime aot Wait
*******************************************************************************}
procedure WWait(ttime: Integer);
begin
if Random(10) = 1 then
IdleTime(ttime,(ttime/10),1.0)
else
Wait(ttime + Random(ttime / 10));
end;
EDIT: Note by Dankness, Do not use with for WWait's < 500 msec. Use Wait instead.
{*******************************************************************************
procedure WWait(ttime: Integer);
By:
Description: Waits Time+10%. Once every ten times performs IdleTime aot Wait
*******************************************************************************}
procedure WWait(ttime: Integer);
begin
if Random(10) = 1 then
IdleTime(ttime,(ttime/10),1.0)
else
Wait(ttime + Random(ttime / 10));
end;
EDIT: Note by Dankness, Do not use with for WWait's < 500 msec. Use Wait instead.