|
frojj Newbie
Joined: 10 Mar 2004 Posts: 3
|
Posted: Wed Mar 10, 2004 5:35 pm
can u see how much time left in #alarm? |
here's my problem. i have a trigger set to inform me if i can do a certain action again. here it is:
#tr {the action} {#var bin {Not Ready};#alarm {+24:00} {#var bin READY}}
then i set on the the variable on the status bar to keep me up to date.
this works great until i wanna find out exactly how much time left before "ready".
is there anyway to peek at the alarm to see how much time left? or is there other ways to make this so i can see count down? so like in the stat bar i'll see BIN=(time left)? would be even better if the variable would set to READY after count down is complete so i'll see BIN=READY when time left is 00:00?
many thanx in advance! |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Mar 10, 2004 7:05 pm |
#ST %if( %alarm( +24:00) > 0, %eval( %alarm( +24:00)/60000):%eval( (%alarm( +24:00)/1000)60), READY)
NOTES:
1. The status line will update when any variable changes. If you are updating variables from your prompt, or some other frequent output with frequent changes, this should work fine. If not, you'll probably want a recurrent alarm which does nothing but change a variable.
#ALA *10 {#VAR x %secs}
2. It would be better to give your alarm an ID and use the ID in the %alarm function instead of the pattern.
#ALA bin1 {+24:00} {#VAR bin READY}}
%alarm( bin1) |
|
|
|
frojj Newbie
Joined: 10 Mar 2004 Posts: 3
|
Posted: Wed Mar 10, 2004 7:32 pm |
did as u suggested and it works perfectly!!!!
thank you very much! interesting note though, the timer starts at 24:10 instead of 24:00. not that it matters, just interesting.. maybe it will be diff next time.. we'll see in 24 mins!
thanx again! and quick reply! |
|
|
|
|
|