Skip to content

PIL.ImageGrab.grab() doesn't "see" all windows #2569

@K1ryl

Description

@K1ryl

Code

im = PIL.ImageGrab.grab()
im.save('2.png')

Here is what actually displayed:
image

Here is the screenshot of PIL:
screenshot_27

Pillow version==4.1.0
This is relevant for different pop ups and menus.

According to @glitchassassin (from pyautogui):

Looks like this is a limitation of Pillow, using SRCCOPY instead of SRCCOPY | CAPTUREBLT in the call to BitBlt.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions