Retrieves information about the specified window
#include <WinAPISysWin.au3>
_WinAPI_GetWindowInfo ( $hWnd )
$hWnd | Handle to the window whose information is to be retrieved. |
Success: | $tagWINDOWINFO structure that contains the information about the specified window. |
Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information. |
Search GetWindowInfo in MSDN Library.
#include <WinAPISysWin.au3>
Local $tWINDOWINFO = _WinAPI_GetWindowInfo(_WinAPI_GetDesktopWindow())
ConsoleWrite('Left: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 1) & @CRLF)
ConsoleWrite('Top: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 2) & @CRLF)
ConsoleWrite('Right: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 3) & @CRLF)
ConsoleWrite('Bottom: ' & DllStructGetData($tWINDOWINFO, 'rWindow', 4) & @CRLF)