win32ui screen capture

Fredrik Lundh fredrik at pythonware.com
Fri Jun 27 04:10:02 EDT 2003


Mark S Pryor wrote:

> You may be able to make this work ... eventually. However,
> circulating in the Python community you will find the C file
> _grabscreen.c with all the same API calls you are trying to use
> in standard C.
>
> see this post
> http://groups.google.com/groups?selm=mailman.1011217637.9447.python-list%40p
> ython.org
>
> It explains how to compile the module _grabscreen.pyd with MS Visual C.
> I was able to get a screen shot script in 10 minutes after I read this
> post. If you don't have a grabscreen module already, see this ZIP file
> for the relevant files. Use the file ImageGrab1.py to make a screen
> capture of the desktop and save the results as PNG.
>
> (for ActivePython 2.2 only)
> http://mysite.verizon.net/res1ur2j/GrabScreen.zip
>
> you will need PIL from
> http://www.pythonware.com/products/pil/

note that PIL 1.1.3 and later includes screen grabbing facilities;
for details, see:

    http://www.effbot.org/zone/pil-imagegrab.htm

</F>








More information about the Python-list mailing list