I am trying to make a python program that makes a windows box pop up at certain times to remind me that I have to do something. Problem is, the while loop makes python crash, is there any way to make python check the time without a while loop?
while 1:
gettime = time.strftime("%H:%M", time.localtime())
gettime.replace(':','.')
if gettime in tasks.keys():
tasks[gettime] = dowat
ctypes.windll.user32.MessageBoxW(0,u'ALERT!', dowat, 0)
time.sleep(10)
SendKeys.SendKeys("""
{LWIN}
l
""")
I tried making python sleep at the end of the loop but it still freezes up.