Code: Select all
WasIRan() {
static save_filepath := A_ScriptDir "\" A_ScriptName ".last_run"
FileRead last_run, % save_filepath
FormatTime this_run, , yyyyMMdd
if (last_run != this_run) {
FileDelete % save_filepath
FileAppend % this_run, % save_filepath
return true
}
}