Hey all,
I have some programs for work. For data metrics purposes, I added time stamps to certain functions. I intended to add a time stamp with a file append to my pause function so my boss can see when a program is stopped and resumed. Base function (without the tracking) works fine. However, once I added the tracking metrics, it will pause, but will not unpause once the key (escape) is pressed again. Standard goes, person hits escape it pauses, they hit escape again it resumes. The following alterations broke it and I dont grasp why:
Code: Select all
esc::
PAUSE_TIME := SubStr(A_NOW,-5,6)
if (PAUSED_STATUS = "")
{
FileAppend, PAUSED.%PAUSE_TIME%`n, %FILE_LOCATION% ; Script started append
PAUSED_STATUS = 1
}
else if (PAUSED_STATUS = "1")
{
FileAppend, UNPAUSED.%PAUSE_TIME%`n, %FILE_LOCATION% ; Script started append
PAUSED_STATUS = ;
}
Pause
Return
Code: Select all
esc::
Pause
Return