[python-win32] Re: Window capture using WM_PRINT and Python

Gabriel Genellina gagenellina at softlab.com.ar
Wed Jan 19 01:02:06 CET 2005


At 18/1/2005 20:08, you wrote:

>I'm a Java developper and I wish to make a capture of an offscreen window 
>(on WinXP). It's not possible in Java, so I use a python script and 
>WM_PRINT, but it doesn't seem to work.

I think device contexts are not shareable between processes, so you can't 
pass a DC handle.
Anyway, try to stay in Java - running a Python script to send some windows 
messages looks crazy to me!
You're using SWT, dont you? I'm almost sure it *is* possible to capture the 
image, but ask in a Java or Eclipse list for help.




More information about the Python-win32 mailing list