Hello,
I (simply) need to send a startup script based on a range of time.
In other words, at startup, if it is between 8:00 and 23:00 Widget would send a "play" (SeqSetState) to Pandoras, if it is between 23:00 and 8:00 Widget would send a "stop" command.
I started to write an “if-then-else” script condition , but will need some help to finalize.
I use the system variables “now” but I’m not sure about the Value B as I just need the time not the date.
if Now >= 2023-11-24 08:00:00.000 AND <= 2023-11-24 23:00:00.000 {
WDWait(2)
SeqSetState(1,”Play”)
}
Else {
WDWait(2)
SeqSetState(1,”Stop”)
}
Hope that make sense ,
Thx
Windows 10 64 19045.3208
widget version 6.5.6