I would like to capture some state of a minimised (chat) application by reading it from a screenshot.
I know how to take screenshots of visible windows using screencapture
but I do not know how to generalise this to minimised windows. This seems to be a working example for windows: Python Screenshot of inactive window PrintWindow + win32gui
Is there a MacOS equivalent?
edit: my question is not a duplicate of the question linked above, because I need more than a win32
equivalent, I need the screenshot functionality on top of it.