GetActiveWindow()
Syntax
WindowNumber = GetActiveWindow()Description
Returns the number of the window which currently has the keyboard focus or -1 if no window 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
A window can be activated (set the focus on it) with the SetActiveWindow() function.
See Also
SetActiveWindow()
Supported OS
All