[python-win32] screen capture and win32gui.GetDesktopWindow()

Gabriel Genellina gagsl-p32 at yahoo.com.ar
Thu Dec 7 05:21:56 CET 2006


At Wednesday 6/12/2006 21:32, Ray Schumacher wrote:

>I've been mulling screen capture code. I tried PIL's
>ImageGrab().grab() (with pymedia) but find PIL's method to be pretty
>slow, ~4grabs per second max with no other processes.
>pymedia is pretty quick once I hand it the data.
>
>There has to be another way to get a copy or buffer() of the screen
>DC's data that is faster (I hope).

Yes, but I doubt you can get faster without writting a specific program.
- watch for invalidate and paint events so you just grab the screen 
areas that actually have changed.
- use a "pseudo video card" driver to watch for drawing primitives as 
TightVNC does (or is it some other VNC clone?)


-- 
Gabriel Genellina
Softlab SRL 

__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis! 
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar


More information about the Python-win32 mailing list