Process Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Process Operations >

Process Commands

WII. - Wait-for-Input-Idle

Previous Top Next


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:

 

    OPT. - Optional Settings

    IEP. / NEP. - If-Exists-Process

    GDF. - Get-Data-From

    CPR. - Close-PRocess

    GPI. - Get Process Information

    KPN. - Kill Process by Name

    WPR. - Wait-Process-Running

    WPT. - Wait-Process-Termination