[python-win32] Screenshot a given window instead of the whole desktop
Michael C
mysecretrobotfactory at gmail.com
Fri Apr 28 20:40:34 EDT 2017
Hi all:
I have my own code that samples pixel colour,
https://pastebin.com/4EMd765h
and now I am trying to add the feature of saving the Device Context to a
.bmp file, so I found this code
https://books.google.ca/books?id=9MS9BQAAQBAJ
however there is one problem: The book example screenshots the whole
desktop and I only want a screenshot of a given window. Is there a way to
modify the black hat example into something that only screenshot a window
given its handle?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20170428/92092842/attachment.html>
More information about the python-win32
mailing list