Combines the functions of WinGetActiveTitle and WinGetPos into one command.
WinGetActiveStats, Title, Width, Height, X, Y
The name of the variable in which to store the title of the active window.
The names of the variables in which to store the width and height of the active window.
The names of the variables in which to store the X and Y coordinates of the active window's upper left corner.
If no matching window is found, the output variables will be made blank.
This command is equivalent to the following sequence:
WinGetTitle, Title, A WinGetPos, X, Y, Width, Height, A
If the active window is a hidden window and DetectHiddenWindows is off (the default), all commands except WinShow will fail to "see" it. If there is no active window for this reason or any other, this command will set all of its output variables to be blank.
WinGetPos, WinGetActiveTitle, WinGetTitle, WinGetClass, WinGetText, ControlGetText
WinGetActiveStats, Title, Width, Height, X, Y MsgBox, The active window "%Title%" is %Width% wide`, %Height% tall`, and positioned at %X%`,%Y%.