When the script runs in PMC the difference time displayed in the MsgBox is the same as the start time.
I've had to use the Expression action to get the function in the script.
This is the script thats generated
Code: Select all
varStartTime := A_Now
Loop, 5
{
Sleep, 5000
varCurrentTime := A_Now
varTimeDiff := varStartTime
EnvSub, varTimeDiff, %varCurrentTime%, seconds
MsgBox, 262144, a title,
(LTrim
%varStartTime% - start
%varCurrentTime% - now
%varTimeDiff% - difference
), 3
}