<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > ITW. - If Top Window > Window Operations * ITW. / NTW. |
MiniRobotLanguage (MRL)
"W" - Flag "GoSub if found"
If 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.
ITW.ctW|PBWindowClass:0|BCS|Sub
MMV.
EIF.
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.
ITW.ctw|PBWindowClass:0|BCS|1
CAW.PBWindowClass:0|BCS
' Wait until its gone
MTW.
EIF.
' And then open a new instance
EXE.?exepfad\Sample Apps\BSC-Testform.exe
ITW.ct|PBWindowClass:0|BCS
SCW.ct|butt|Install
MMV.
EIF.
ENR.
'-----------------------------------------------------------
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: