win32gui.GetWindowRect

(left, top, right, bottom) = GetWindowRect(hwnd)

Returns the rectangle for a window in screen coordinates

Parameters

hwnd : int

The handle to the window