Message: 8 Date: Mon, 21 Mar 2005 17:58:50 +0100 From: "magic joe" <[EMAIL PROTECTED]> Subject: [python-win32] screenshot of a window? To: <python-win32@python.org> Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original
Make the window you are looking for the foreground window (or search for it's handle using the text in the Titlebar)- you probably won't need the coordinates then. There are api bindings in win32gui to make the window the foreground window. Then you can use the recipe someone posted here last week, which uses PIL to grab a screenshot. That was only a few lines of Python code, plus you have to have PIL installed. Thats a nice coincidence I'm also looking for screenshot but then only for a certain window. Still need to know how to find a certain window and then get its coordinates. _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32