Use the method to get the current top-level window (the window the user is currently working with) as a reference to the
|TestObj||A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section|
The method is applied to the following object:
To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.
Window object that represents the current top-level window. If no top-level window is found, the
ActiveWindow method returns an empty stub object.
The following example demonstrates how to use the
ActiveWindow method in scripts:
var w = Sys.Desktop.ActiveWindow();
w = Sys.Desktop.ActiveWindow(); w.Minimize() w.Restore()
Set w = Sys.Desktop.ActiveWindow
w := Sys.Desktop.ActiveWindow;
var w = Sys["Desktop"]["ActiveWindow"]();