Screen Log
Join the DZone community and get the full member experience.
Join For Freesave the code in .pyw file if you don't want a command-line window show when running.
from ImageGrab import grab
from time import sleep
from time import localtime,strftime
while 1:
im=grab()
im=im.convert('L')
filename=strftime('%d%H%M',localtime())
im.save(r'c:\tmp\%s.jpg'%filename,quality=15)
sleep(300)
i=i+1
Opinions expressed by DZone contributors are their own.
Comments