<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > SCW. - Search-Child-Window > Window Operations * SCW. |
MiniRobotLanguage (MRL)
"W" - Flag "GoSub if found"
Search Child Window
Intention
If the child- you are looking for is found within the specified waiting time, normally the script just continues. You can however ask the robot to first call a Subprogram in that case and then continue with the script. This is done using the "W"-Flag.
STW.ct|PBWindowClass:0|BCS
SC.ctW|Button|Install|Sub
MMV.
ENR.
:Sub
MBX.!
RET.
The "W"-Flag can be used together with the "V"-Flag, while only one of these will be called. In case you use the "g"-Flag "on found Goto", the "W"-Flag will be ignored.
Short Examples:
'
' And then open a new instance
EXE.?exepfad\Sample Apps\BSC-Testform.exe
' If found close that window.
STW.ctWw|PBWindowClass:0|BCS|Sub|1
' And then open a new instance
EXE.?exepfad\Sample Apps\BSC-Testform.exe
STW.ct|PBWindowClass:0|BCS
SCW.ct|butt|Install
MMV.
ENR.
'-----------------------------------------------------------
:Sub
CAW.PBWindowClass:0|BCS
' Wait until its gone
MTW.
RET.
Example
-
Remarks
The "W"-Flag can be used together with the "V"-Flag, while only one of these will be called. In case you use the "g"-Flag "on found Goto", the "W"-Flag will be ignored.
Limitations:
-
See also: