<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > STW. - Search Top Window > Window Operations * STW. |
MiniRobotLanguage (MRL)
"k" - Flag "WII. default"
Search 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 - STW..
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.
STW.cj|WindowClass|5
MMV.
' Will do the same without repeating the value
STW.ck|WindowClass
MMV.
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
STW.cj|WindowClass|5
MMV.
' Will do the same without repeating the value
STW.ck|WindowClass
MMV.
ENR.
Remarks
Limitations:
-
See also: