Sys_WaitForMaxNumberOfProcesses
Description
Searches for a specified process. If specified process count is larger or equal to iNumberOfProcesses the function will wait. It will check every iIntervalSec at a max of iMaxWaitSec
Syntax
Sys_WaitForMaxNumberOfProcesses(sProcessExeName, iMaxWaitSec, iIntervalSec, iNumberOfProcesses) As Boolean
Parameters
sProcessExeName (String)
Name of process
iMaxWaitSec (Integer)
Maximum wait time
iIntervalSec (Integer)
Interval for each check
iNumberOfProcesses (Integer)
Number of proccesses
Return value
If the number of processes does not get lower than iNumberOfProcesses before iMaxWaitSec the function will return false
Example
VBScript
If bStatus Then bStatus = Sys_WaitForMaxNumberOfProcesses(sProcessExeName, iMaxWaitSec, iIntervalSec, iNumberOfProcess)
Related functions
Sys_WaitForProcess Sys_Sleep Sys_KillProcess Sys_GetProcessOwner Sys_CompareProcessOwner