Handle Property

Applies to TestComplete 14.10, last modified on June 5, 2019

Description

The Handle property returns the object’s window handle (HWND).

Declaration

TestObj.Handle

Read-Only Property Integer
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section

Applies To

The property is applied to the following objects:

View Mode

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

Property Value

An integer value holding the handle.

Remarks

Since only one window has the focus on screen at any given time, you can use this property to determine whether the window (or control) TestObj is an active window (control).

Highlight search results