#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. FileCreateShortcut, %A_ScriptFullPath%, %A_Startup%\DHD_Reminder.lnk filled := 0 hoursleep := 30 * 60000 ; 30 min sleepas SetTimer, CheckTime, 50000 CheckTime: loop { TheTime = %A_Hour%%A_Min% If (TheTime >= 1130 and filled = 0) { MsgBox, 35,, Have you filled DHD today? IfMsgBox Yes filled := 1 IfMsgBox No { Run, Chrome.exe "https://www.google.com" filled := 1 } IfMsgBox Cancel sleep, hoursleep } if (TheTime = 1057) filled := 0 } return