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