<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > SCW. - Search-Child-Window > Window Operations * SCW. |
MiniRobotLanguage (MRL)
"k"-Flag "WII. default"
Search Child 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 are allowed. For example:
' WII. wait no longer then a half second
STW.c|WindowClass
SCW.tj|OK|0.5
MMV.
' Will do the same as "k" will repeat
' the value from "j" internally.
STW.c|WindowClass
SCW.tk|OK
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.
Short Examples:
-
Example
-
Remarks
-
Limitations:
See also: