Place in SRL\SRL\Core\Timing.scar:scar Code:procedure HoldTimer(H, M, S: Integer; OnTimer: procedure);
var
MS: Integer;
begin
MS := GetTimeRunning + (H * 60 * 60 * 1000) + (M * 60 * 1000) + (S * 1000);
while (MS > GetTimeRunning) do
OnTimer();
end;
What does this do? Instead of waiting every X milliseconds it can wait hours, minutes and seconds.. Also, while it is stopping the time, you can let it call the procedure OnTimer.
This may or may not be useful, but i made this a while back and found it sitting in my scripts directory
Have fun![]()






Reply With Quote












