GetActiveWindow()

Syntax

WindowNumber = GetActiveWindow()
Description
Returns the number of the window which currently has the keyboard focus or -1 if no window within the program is active.

Parameters

None.

Return value

The number of the window which currently has the keyboard focus or -1 if no window is active.

Remarks

The function will only report the window ID within the program. A window within the program can be activated (set the focus on it) with the SetActiveWindow() function.

See Also

SetActiveWindow()

Supported OS

All

<- EventwParam() - Window Index - GetWindowColor() ->