Posted By

AgustinAlvia on 03/21/12


Tagged


Versions (?)

Python Screenshot


 / Published in: Python
 

Probado en python 3.2.2

  1. #probado en python 3.2.2
  2. import PIL.ImageGrab #http://www.lfd.uci.edu/~gohlke/pythonlibs/
  3. import datetime
  4. now = datetime.datetime.now().strftime("%Y-%m-%d %H%M%S")
  5. print(now)
  6. img = PIL.ImageGrab.grab()
  7. img.save(str(str(now) + '.png'),'png')

Report this snippet  

You need to login to post a comment.