<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > SCW. - Search-Child-Window > Window Operations * SCW. |
MiniRobotLanguage (MRL)
"j"-Flag "WII. by number"
Search Child Window
Intention
"Wait for Input Idle" halts script execution until the localized child-window is ready to process our Input.
This Command can be seen as a dynamic Pause-Statement, it waits only if our target child-window (-process) is busy. The maximum waiting time must be given as a numeric value or variable.
If you have specified the WII. command or the "j"-Flag in the STW.-statement, then there is no need to specify it again in the SCW., as internally the WII. works based on the process behind the window. And the process is the same for the Top- and the child-window.
Note the value you specify will replace the default internal value for "WII. without parameter", used for the "k" - Flag - STW. . But also for WII. if no parameters are given.
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 "j"-Flag does the same like the WII. - Wait-for-Input-Idle statement. Just that it is integrated and does not need a separate line of code.
Short Examples:
-
Example
-
Remarks
-
Limitations:
See also: