GetActiveWindow


 

GetActiveWindow>window_title,X,Y[,Width,Height]

 

Retrieves information about the current active window.  The window title, and top left coordinates of the active window are stored in window_title, X and Y.

 

If the WIN_USEHANDLE variable is set to 1 window_title will contain the window's handle.

 

The optional parameters Width and Height will return the width and height of the window respectively.

 

If GAW_TYPE is set to 1 (default is 0) this command will retrieve information about the active child window of the active foreground window.  If there are no child windows window_title will be set to an empty string.  For default behaviour set GAW_TYPE back to 0.

 

Abbreviation : GAW

See also: GetWindowPos, CloseWindow, GetWindowHandle