def capture(hwnd): x1, y1, x2, y2 = win32gui.GetClientRect(hwnd) w = x2 - x1 h = y2 - y1 hwndDC = win32gui.GetWindowDC(hwnd) mfcDC = win32ui.Crea