ASPN ActiveState Programmer Network  
ActiveState, a division of Sophos
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups
Submit Recipe
My Recipes

All Recipes
All Cookbooks


View by Category

Title: Grab screen on Windows (PrintScreen emulation)
Submitter: Keisuke URAGO (other recipes)
Last Updated: 2006/06/30
Version no: 1.1
Category: Image

 

Not Rated yet


Description:

Grab the screen shot on Windows.

Source: Text Source

import win32api, win32con
win32api.keybd_event(win32con.VK_SNAPSHOT, 0)

Discussion:

If you want the active window screen then,

import win32api, win32con
win32api.keybd_event(win32con.VK_SNAPSHOT, 1)

On X Window System, execute the xwd command. But can not screen cast, I want to examine a method.



Add comment

No comments.



Highest rated recipes:

1. A simple XML-RPC server

2. Web service accessible ...

3. IPy Notify

4. Treat the Win32 Registry ...

5. a friendly mkdir()

6. Wrapping template engine ...

7. Assignment in expression

8. Changing return value ...

9. Implementation of sets ...

10. bag collection class




Privacy Policy | Email Opt-out | Feedback | Syndication
© 2006 ActiveState Software Inc. All rights reserved.