Window Operations * WTW.

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Window Operations > WTW. - Wait new Top Window >

Window Operations * WTW.

"b" - Flag "window to back"

Previous Top Next


MiniRobotLanguage (MRL)

 

"b" - Flag "window to back"

window to back

 

 

Intention

 

In most cases we want the window to come in front of other windows. so we can use it. For this we do not need any STW.-flag, as this is the default behavior of the STW.-command.

 

In some cases, we want just the opposite. We want a window to go behind all other windows. We sent a "window to back". For this we use the "b"-Flag.

 

It will locate the window "on Top" and sent it to back. See the example below.

 

 

Example

 

' Close all such windows if there are some open

CAW.PBWindowClass:0|BCS - Testform

 

' Open 5 Terstforms and position them nicely

FOR.$$CNT|1|5

 EXE.?exepfad\Sample Apps\BSC-Testform.exe

 STW.p|#pid#

 SWP.(100+55*$$CNT),(200+55*$$CNT)

NEX.

 

FOR.$$CNT|1|50

'Move Testform "On top" to back

 STW.ctb|PBWindowClass:0|BCS - Testform

 ' Make small rest of 0.1 seconds so we can see it

 PAU.0.1

NEX.

 

' Close all Testforms

CAW.PBWindowClass:0|BCS - Testform

ENR.

 

 

 

Remarks

 

 

 

 

Limitations:

 

 

 

 

See also: