Window Operations * STW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > STW. - Search Top Window >

Window Operations * STW.

"W" - Flag "GoSub if found"

Previous Top Next


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:

 

    "g" - Flag - STW.

    "o" - Flag - STW.

    "V" - Flag - STW.

    "X" - Flag - STW.