Open a-alak opened 1 week ago
Could you attach an image to show what you're seeing?
Yeah sorry, what i tested on was sensitive data, so i could not share. But here is an alternative example with the file explorer. Example 1 shows a tooltip with the url of the Outlook shortcut. Usually i would have expected the tooltip not to show in the screenshot like example 2.
@nulano did you have any insight here?
I can confirm that tooltips are included with both include_layered_windows=False
and include_layered_windows=True
on Win 11 Pro version 23H2, but also on Win 10 Home version 22H2.
I just updated to windows 11.
Do you know which build of Win 10 you were running before you upgraded?
Unfortunately not. And honestly I am more challenged by popups than tool tips, and I cannot show you an example pic of the pop up. It is running on a hospital system, where there often is weird pop up messages. They did not use to show up in ImageGrab, but now they do.
What did you do?
Run PIL.ImageGrab.grab() without arguments.
What did you expect to happen?
Until now this has not included pop-ups and tooltips in the screenshot. I just updated to windows 11. I can see in issue #2569 that it is the expected behavior to not include layered windows, and that the option to include them was added, but not as a default.
I suppose the underlying API has changed in windows 11. Anyone that can share some knowledge about this?
What are your OS, Python and Pillow versions?