Created
February 24, 2014 19:12
-
-
Save mazulo/9194880 to your computer and use it in GitHub Desktop.
Capturar uma screenshot da tela em um dado intervalo de tempo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyscreenshot as ImageGrab | |
from time import strftime | |
import time | |
hora_atual = strftime('%H:%M') | |
i = 0 | |
while hora_atual != '15:54': | |
ImageGrab.grab_to_file('img-%d.png' % i) | |
i += 1 | |
time.sleep(0.5) | |
hora_atual = strftime('%H:%M') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment