You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how it is supposed to work according to the documentation. The win32gui.GetWindowRect function works differently and you have to fix it in your own code.
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
The text was updated successfully, but these errors were encountered: