This is what I'm using:
timer $$?="which is not activated" off
My problem is: Say I put "1" in the box i get an error saying "timer 2 not
active" even though I put 1 in the box.
Could some one help? (Newbie!)
Thanks :)
--
Michelle
timer $+ $$?="bla bla" off
or
var %tmpvar $$?="bla bla"
if ( $timer( %tmpvar )) {
timer $+ %tmpvar off
}
else echo Timer %tmpvar doesn't exist you moron!
anyway, thats quite a manual thing for a popup? what about something like
this instead?
menu menubar {
MyScript
.Timers ( $+ $timer(0) )
..Turn off
...$timer(1) : myscript.toff 1
...$timer(2) : myscript.toff 2
...$timer(3) : myscript.toff 3
...$timer(4) : myscript.toff 4
...$timer(5) : myscript.toff 5
...$timer(6) : myscript.toff 6
...$timer(7) : myscript.toff 7
...$timer(8) : myscript.toff 8
...$timer(9) : myscript.toff 9
}
alias myscript.toff {
if ( $timer( $1 )) {
echo Turning off timer $timer( $1 ) $+ . $&
$timer( $1 ).secs seconds before it would have been triggered.
timer $+ $timer( $1 ) off
}
}
or using a dialog with listboxes could make it even more fun, with
updates of the timer values etc. :) could be an idea for a part of a
debugger script also i guess
good luck
--
J.T.Stokkeland aka Stoke
<!-- St...@MachineControl.net
Sto...@Highland-plastics.com
http://www.MachineControl.net
Stoke ! #Debian @ irc.NightDreamer.net
>