VISUAL LOGIC:
- Cut the time string with Left and Right String and extract Minute, Seconds, Milliseconds and separators.
- Use input selector to use as output text - the following Concatenate
- Concatenate 1 like M:SS.ZZZ - if the Minute > 0
- Concatenate 2 like SS.ZZZ - if the Minute is zero
or
SCRIPT:
Dim MyTimer as xpClockTimerWidget = nothing
Engine.GetWidgetByName("ClockTimer2", MyTimer)
If MyTimer.TimerValue < 60000 then
MyTimer.Format = "SS.Z"
Else
MyTimer.Format = "N:SS.Z"
End If
Download demo file:
https://www.dropbox.com/s/nc0hj9pp11fxu2z/TIMER%20FORMAT%20-%2020191123.xpf?dl=0
#XPression