win32gui.GetWindowText
string = GetWindowText(hwnd)
Get the window text.
Parameters
Comments
Note that previous versions of PyWin32 returned a (empty) Unicode object when the string was empty, or an MBCS encoded string value otherwise. A String is now returned in all cases.