FocusedWindow Method (Desktop Objects)

Applies to TestComplete 15.48, last modified on March 01, 2023

Description

Use this method to get the currently focused window (the window that has the focus) as a reference to the Window object.

Note: Only one window can be focused on screen at any given time.

Declaration

TestObj.FocusedWindow()

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Result A Window object

Applies To

The method is applied to the following object:

View Mode

To view this method in the Object Browser panel and in other panels and dialogs, activate the Advanced view mode.

Result Value

The Window object that represents the currently focused window. If no focused window is found, the FocusedWindow method returns an empty stub object.

See Also

Window Object
ActiveWindow (Desktop Objects)

Highlight search results