<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > Window Operations |
MiniRobotLanguage (MRL)
SFW. Command
Set Foreground window
Intention
The SFW..-Command will bring the last localize Application-window (Top-Window) in front of all other non-TopMost windows.
Usage is simple:
' Normally STW. already includes a SFW.
' We have disabled this here, using the "A"-Flag
STW.Act|PBWindowClass:0|TestApp
SFW.
SCW.cn|edit|2
STW. already contains an implicit SFW. if the "A"-Flag is not given therefore you will most often not need to explicitly call this command.
Important note: Windows that are TopMost will always stay in front of all non TopMost windows. An example for a TopMost windows is the Script-Editor, if the Menu Entry "Display always on Top" is checked.
To make a Window "TopMost", use "M" - Flag - STW.
Syntax
SFW.[P1]
Parameter Explanation
P1 - (optional) VAR or formula in (..).
Must be a valid Window handle
Example
STW.AgXctw|over|PBWindowClass:0|TestApp|0
EXE.?exepath\Sample Apps\TestApp_01.exe
:over
' Normally STW. already includes a SFW.
' We have disabled this here, using the "A"-Flag
STW.Act|PBWindowClass:0|TestApp
SCW.cn|edit|2
SFW.
ENR.
Remarks
Will set the timeout-flag if the operation was not successful.
Limitations:
-
See also: