# In method [_screenshot_xxx ]; Use param[region] error, causing larger screenshots In the latest version of pyscreen。 win10 + python 3.11.5 # The region obtained using the method[ win32gui.GetWindowRect ] region = win32gui.GetWindowRect(edit_content_handle) pyautogui.screenshot("target.jpg", region=region) # fix the method [ def _screenshot_win32(imageFilename=None, region=None): ]  # return the screenshot img  # but desired screenshot like this; After modifying the _screenshot_win32 code, the following image can be obtained correctly 