-
-
Notifications
You must be signed in to change notification settings - Fork 93
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
Capture single window #194
Comments
Not a dev here but here I have an idea on how this could be done.
Find the Window size and position with the API, and use that as the mask for the screen capture. |
This can definitely be done. I'm arguing against a mask + fullscreen capture where possible so that windows don't need to be moved to the front to be captured. |
Is it possible to capture a single app window on OSX? |
Looks like it https://stackoverflow.com/a/48030215 |
I meant, with this library using python. |
No, that is what this issue is to request. There is another project called |
Here's a Windows implementation of this feature from flexx (purely with ctypes): |
There should be options to capture single windows.
There is complication here, as different strategies may not work in even within a single OS.
IMO where possible capture should not capture the whole screen clipped to the window, where possible it should use native APIs to grab just the window.
On windows, one example of this is here
https://stackoverflow.com/questions/19695214/python-screenshot-of-inactive-window-printwindow-win32gui
It doesn't work for Modern UI apps, (so calculator does not work, but notepad does), where different APIs are needed, but it's probably better than nothing / a start ?
Upvote & Fund
The text was updated successfully, but these errors were encountered: