|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: Sun Sep 16, 2012 8:25 pm
Specifying What Folder An Alarm Goes into |
Hello, I have a script that creates an alarm and recently it started putting it in a zone folder which is disabled unless I am running it. How would I specify for it to go into a different folder or fix this solution if that isn't possible?
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Sun Sep 16, 2012 9:04 pm |
Syntax: #ALA id {timepattern} {commands} class
folders are classes |
|
_________________ Discord: Shalimarwildcat |
|
|
|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: Mon Sep 17, 2012 11:46 pm |
shalimar wrote: |
Syntax: #ALA id {timepattern} {commands} class
folders are classes |
Hmmm, I still can't get it to work based on just putting a word for the folder at the end of it. Example
#alarm Activetimer 160 {#if (@afkbutton=0) {clear;halt;say resetting}} afkfolder
Doesn't work. It still goes into the wrong folder. |
|
|
|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: Tue Sep 18, 2012 1:22 am |
any suggestions?
|
|
|
|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: Tue Sep 18, 2012 1:31 am |
I dun figured it out #class goes at the start ty
|
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Tue Sep 18, 2012 1:50 am |
#alarm "Activetimer" -160 {#if (@afkbutton=0) {clear;halt;say resetting}} afkfolder
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue Sep 18, 2012 1:12 pm |
Did you just say you used the #CLASS command? You should be aware that after you execute #CLASS, it will automatically create
everything in that class until you execute "#CLASS 0". |
|
|
|
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Fri Oct 19, 2012 10:24 am |
You could also just create a permanent timer and enable it within your script by placing the line #T+ ActiveTimer.
Code: |
<?xml version="1.0" encoding="ISO-8859-1" ?>
<cmud>
<trigger name="ActiveTimer" type="Alarm" priority="10" newline="false" enabled="false" copy="yes">
<pattern>*160</pattern>
<value>#T- ActiveTimer
#if (!@afkbutton) {
#sendraw "clear"
#sendraw "halt"
#sendraw "say resetting"
}</value>
</trigger>
</cmud>
|
|
|
|
|
|
|