<< Click to Display Table of Contents >> Navigation: 3. Script Language > Process Operations > Process Commands |
MiniRobotLanguage (MRL)
WII. Command
Wait for Input Idle
Intention
Halts script execution until a specified Process is ready to process Input.
This Command can be seen as a dynamic Pause-Statement, unlike a fixed statement which waits always for a fixed time.
If this process is a console application or does not have a message queue, WaitForInputIdle returns immediately.
Syntax
WII.[P1][|P2]
Parameter Explanation
P1 - time to pause (maximum) in seconds
P2 - (optional) Process-ID of the process to wait for.
If omitted, actual window-process is taken.
Please note that some old programs do not support WII. and therefore may hang if WII. is used on them.
Example
'*************************************
' WII - Demo
'*************************************
'DBM.2
: §§LNK=http://www.fa2.de/
EXH.index.html|$$HWA|§§LNK
PRT.Handle No. 1 is $$HWA
STW.h|$$HWA
WII.
:over
END.
Remarks
-
Limitations:
-
See also:
• IEP. / NEP. - If-Exists-Process
• GPI. - Get Process Information
• WPT. - Wait-Process-Termination
•