<< Click to Display Table of Contents >> Navigation: 3. Script Language > Process Operations > Process Commands |
MiniRobotLanguage (MRL)
WPR. Command
Wait Process Running
Intention
Halts script execution until a specified process has been started.
Syntax
WPR.[P1][|P2]
Parameter Explanation
P1 - Filename (with or without path) of the EXE which shall
be monitored
P2 - Timeout ( 0 = infinite) if omitted 0 is taken
Example
'***********************************
' WPR.-Demo
'***********************************
DBM.2
' First closing all IE's
:retry
IEP.iexplore.exe
CPR.0|#pid#
JMP.retry
EIF.
MBX. Please click Ok. then start the Internet Explorer
WPR.iexplore.exe
MBX.IE running!
'***********************************
' WPR.-Demo 2 with Timeout of 3 Seconds
'***********************************
' First closing all IE's
:retrb
IEP.iexplore.exe
CPR.0|#pid#
JMP.retrb
EIF.
MBX. Please click Ok. then start the Internet Explorer
WPR.iexplore.exe|3
MBX.IE running or Timeout!
:over
MBX.!
END.
Remarks
-
Limitations:
-
See also:
• GPI. - Get Process Information
• IEP. / NEP. - If-Exists-Process
• WPT. - Wait-Process-Termination