Window Operations * ITW. / NTW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > ITW. - If Top Window >

Window Operations * ITW. / NTW.

"k" - "WII. default"

Previous Top Next


MiniRobotLanguage (MRL)

 

"k" - Flag "WII. default"

If Top Window

 

 

Intention

 

"Wait for Input Idle" halts script execution until the localized window is ready to process our Input.

 

This Command can be seen as a dynamic Pause-Statement, it waits only if our target window is busy. The maximum waiting time is taken from an internal value that is been set with the last WII. statement or with the "j" - Flag - ITW. .

 

Unlike a fixed pause statement which would always wait for a fixed time. WII. is the better solution.

 

If the process is a console application or does not have a message queue, "Wait For Input Idle" returns immediately.

 

The given time is in seconds. Fractions of a second are allowed.

 

ITW.cj|WindowClass|5

MMV.

EIF.

 

' Will do the same without repeating the value

ITW.ck|WindowClass

MMV.

EIF.

 

Technically the "k"-Flag does the same like the WII. - Wait-for-Input-Idle statement without a parameter. Just that it is integrated and does not need a separate line of code.

 

 

 

Example

 

' Demonstrate the "j" and the "k" Flag

ITW.cj|WindowClass|5

MMV.

EIF.

' Will do the same without repeating the value

ITW.ck|WindowClass

MMV.

EIF.

ENR.

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

 

 

See also:

 

    "j" - Flag - ITW.

    WII. - Wait-for-Input-Idle