|
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Thu Jun 16, 2011 4:54 pm
How to end an alarm early |
Cmud Pro newest version
Windows 7 64
Is there any way to cancel or execute an alarm that hasn't fired yet?
For example. if I set an alarm to execute in 30 seconds, can I #exec (alarmname) or something similar?
or #canc (alarmname) |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Thu Jun 16, 2011 5:14 pm |
You are looking for the #SUSPEND command to cancel the alarm already running.
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Thu Jun 16, 2011 5:16 pm |
Close, but not quite.
I want to either A) completely cancel it and remove it from the list of triggers, or B) execute it prematurely, and then wipe it.
But thanks for your input. |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Thu Jun 16, 2011 5:18 pm |
#suspend will completely cancel and remove it from the list of triggers
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Thu Jun 16, 2011 5:19 pm |
Ah ok, the help file in CMud didn't say that.
But what if I want to execute it earlier than the set time? Is there a way to do that? |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Thu Jun 16, 2011 5:27 pm |
As for ending the alarm early, check the help file for %alarm. If your alarm was named Alarm1, #call %alarm(Alarm1,1) would either cause the alarm to fire in 1ms and restart or fire and be removed from the session depending on the type of alarm you were using.
I guess #suspend will also not remove the alarm if it's not a temp alarm after thinking on it for another minute or two. Sorry for the wrong info there. If you are not using a temp alarm and want to remove it, #untrigger will remove it from the session. |
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Loftaris Adept
Joined: 24 Aug 2004 Posts: 277
|
Posted: Thu Jun 16, 2011 6:11 pm |
Thanks a lot for the help Fizgar, totally appreciate it. I've been fighting with this for weeks before asking here hehe.
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Fri Jun 17, 2011 2:18 pm |
Another thing you could do is execute another #ALARM command with the same name. This will _replace_ the existing alarm with the new definition.
|
|
|
|
|
|