MyChat Scripts Engine: mClearAutoScriptsQueue
Clearing an execution queue of scheduled time-scripts.
Syntax
procedure mClearAutoScriptsQueue;
Example
Checking if there are any time-scripts in the queue. If yes, then their number is displayed and the queue is cleared.
var
iCount: integer;
begin
iCount := mGetAutoScriptsQueueCount;
if iCount > 0 then begin
mClearAutoScriptsQueue;
mLogScript('Queue cleared, ' + inttostr(iCount) + ' scripts deleted', '');
end else mLogScript('Queue is empty', '');
end.
Script work result
[17:02:44] (Log "mClearAutoScriptsQueue"): Queue is empty
[17:02:44] (Run "mClearAutoScriptsQueue"): Script operation time: 2 ms
[17:02:44] (Run "mClearAutoScriptsQueue"): Script done successfully.
See also