MyChat Scripts Engine: mGetAutoScriptsQueueCount
Getting a total number of time-scripts which are scheduled for execution.
Syntax
function mGetAutoScriptsQueueCount: integer;
Function result
Returns the total number of scripts. If the queue is empty, the function returns 0.
Example
var
iCount: integer;
begin
iCount := mGetAutoScriptsQueueCount;
mLogScript('There are ' + inttostr(iCount) + ' scripts in queue at that moment', '');
end.
Script work result
[17:12:32] (Log "mGetAutoScriptsQueueCount"): There are 0 scripts in queue at that moment
[17:12:32] (Run "mGetAutoScriptsQueueCount"): Script operation time: 2 ms
[17:12:32] (Run "mGetAutoScriptsQueueCount"): Script done successfully.
See also