<< Click to Display Table of Contents >> Navigation: 3. Script Language > Window Operations > Window Operations |
MiniRobotLanguage (MRL)
GFW. Command
Get Foreground Window
Intention
The GFW. Command retrieves a handle to the foreground window (that is the window with which the user is currently working).
The handle of the window is returned and the window is been immediately located.
If the handle can not be returned, for whatever reason, the command returns a zero.
Usage is as simple as:
' Top Enabled Window
GFW.$$REA
DBP.$$REA
Syntax
GFW.[P1]
Parameter Explanation
P1 - (optional) variable that will returns the window handle, if omitted TOS is use.
If the window is found, it is localized.
Example
GFW.$$REA
DBP.$$REA
Remarks
-
Limitations:
-
See also:
• GCT. - Get-Childs-TopWindows