Notifications
Clear all
Topic starter
August 4, 2017 6:19 pm
I was playing with the timers and I could not find a way to set off a alarm when the time is done, is this possible?
August 5, 2017 12:37 am
Hi,
This function will be added in an upcoming release. In the meantime, you can do it with a script. Do you need an example?
August 6, 2017 6:33 pm
I realized that was a dumb question... Here is the script to do this, assuming you had a timer called 'Timer 1' and an alarm called 'Alarm 1':
[loop]
wait "Timer 1" Value >= 00:01:00
"Alarm 1" Active = true
sleep 5000
goto loop
Note that the sleep statement is there to keep the CPU from re-activating the alarm thousands of times per second. You could change that line to be this instead if you wanted to toggle the execution (this will basically wait for the timer to be reset, but there are lots of ways to skin this cat of course):
wait "Timer 1" Value < 00:01:00