-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIL.ImageGrab.grab() doesn't "see" all windows #2569
Comments
There's the Line 349 in 6e7553f
|
See BitBlt documentation:
For the desktop window, "windows that are layered on top" include popups, tooltips, menus, and perhaps some other specialty windows that have to always appear in the foreground. OR-ing the Note that not all applications may wish to capture these additional details, so for backwards compatibility, it may be worth adding an argument to the method definition to specify "capture overlays". |
Hello, I'm having the same problem, but I don't see any display.c file in the Pillow directory as hugovk mentioned and also didn't found the call to BitBlt. I've installed with pyautogui with PIP, and this only installs the PIL folder and not all the files in the parent directory, as it is here. Do you know how to fix this? |
For the record, display.c is located at https://github.com/python-pillow/Pillow/blob/master/src/display.c. @edanca was likely having trouble finding it because it was moved into the 'src' directory since earlier comment. |
I've created PR #3808 to address this. |
Code
Here is what actually displayed:
Here is the screenshot of PIL:
Pillow version==4.1.0
This is relevant for different pop ups and menus.
According to @glitchassassin (from pyautogui):
The text was updated successfully, but these errors were encountered: