[python-win32] Absence of PrintWindow?

Chris Ashurst CAshurst at thig.com
Wed Dec 19 15:01:24 CET 2007


I'm in the process of writing a little screenshot utility, and I've hit a
snag. I currently take a screenshot of a frame via the usual method of
building the various DC's, BitBlt'ing and so on, but the problem I have is
that I'm trying to grab screenshots of windows that are obscured by other
windows (so as to not disturb the current z-index of all windows as they
stand).

I was beginning to feel that what I required would not be possible, until I
found an article at CodeProject
(http://www.codeproject.com/KB/cs/CapturingMinimizedWindow.aspx) that
basically had what I needed (and was also for the most part all win32api
calls, even though the author used C#). As far as I could tell, apart from
some simple registry/bithacks, the author makes a call to PrintWindow(), and
that's where my hunt went cold - I cannot find PrintWindow in the wrapped
win32 stuff.

This is all a really long-winded (my apologies) way of asking if PrintWindow
*is* in Pythonwin, and if not, that's fine - I just need to save my sanity
from hunting for something that isn't there :)

(The only reference I could find to PrintWindow in regards to the win32 api
being wrapped was from a mailing list thread for Tcl in 2006 - the author
mentions it isn't wrapped due to CPU concerns).

Thanks! :)




Chris Ashurst
~Systems Production Support
~~Tower Hill Insurance Group




CONFIDENTIAL NOTICE: This email including any attachments, contains 
confidential information belonging to the sender. It may also be 
privileged or otherwise protected by work product immunity or other 
legal rules. This information is intended only for the use of the 
individual or entity named above.  If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, 
distribution or the taking of any action in reliance on the contents 
of this emailed information is strictly prohibited.  If you have 
received this email in error, please immediately notify us by 
reply email of the error and then delete this email immediately.


More information about the python-win32 mailing list