thanks for this great plugin here is a example for time ranges: ui button("timetest") { set(#current time, "{$plugin function("time.dll", "$currenthour-24h")}{$plugin function("time.dll", "$currentminute")}", "Global") set(#starttime, 0800, "Global") set(#endtime, 2200, "Global") thread { loop while($either($comparison(#starttime, ">=", #current time), $comparison(#endtime, "<=", #current time))) { wait(5) alert("wait") set(#current time, "{$plugin function("time.dll", "$currenthour-24h")}{$plugin function("time.dll", "$curre