<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > WTW. - Wait new Top Window > Window Operations * WTW. |
MiniRobotLanguage (MRL)
"W" - Flag "GoSub if found"
Search Top Window
Intention
If the window 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.ctW|PBWindowClass:0|BCS|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.
Example
'
' 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.
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: