On RCWL#State do
if [act#val]=0
TaskValueSet,6,1,1
Publish /%sysname%/RCWL/State,1
timerSet,1,30
endif
endon
On Rules#Timer=1 do
TaskValueSet,6,1,0
Publish /%sysname%/RCWL/State,0
endon
On RCWL#State do
TaskValueSet,6,1,([act#val]+1)
timerSet,1,30
if [act#val]>3
Publish /%sysname%/RCWL/State,1
endif
endon
On Rules#Timer=1 do
TaskValueSet,6,1,0
Publish /%sysname%/RCWL/State,0
endon