[python-win32] How to take a snapshot of a specific control?

Michiel Vleugel michielv at michielvleugel.com
Tue Dec 5 17:15:20 CET 2006

Hello list,

I'm trying to come up with a script that will take a screenshot of 
internet exploder, (for IE automated unittest script for web 
development) but having trouble drilling fown to the dc of the control.

It looks like I the control that is needed is called "Internet 
Explorer_Server" inside the IE application. How can I get the dc of this 

I tried getting it by using GetDC() on the control, but it doesnt seem 
to work (cause that only works on windows, not on controls).

Any help is greatly appreciated!

Michael Vleugel

More information about the Python-win32 mailing list