Code: Select all
On Clock#Time=All,12:00 Do
Reboot
EndOn
Moderators: grovkillen, Stuntteam, TD-er
Code: Select all
On Clock#Time=All,12:00 Do
Reboot
EndOn
Code: Select all
On Clock#Time=All,12:00 Do
If [Reboot#Last]<>%sysday%
TaskValueSet,5,1,%sysday% // Will survive a reboot, not a power-cycle
Reboot
EndIf
EndOn
That fits my need, thank you very much.Ath wrote: ↑18 Jan 2021, 10:35 - Define a Dummy Device (on Task: 5 name=Reboot, variable: 1 name=Last, in my case)
- Change your code like this:NB: Untested!Code: Select all
On Clock#Time=All,12:00 Do If [Reboot#Last]<>%sysday% TaskValueSet,5,1,%sysday% // Will survive a reboot, not a power-cycle Reboot EndIf EndOn
Users browsing this forum: No registered users and 25 guests