Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

a timer pop up

0 views
Skip to first unread message

michellez

unread,
Nov 20, 2000, 3:00:00 AM11/20/00
to
I'm writing a pop up to turn off a timer.
I wish a box to appear in to which I would enter the ident timer to turn
off.
I use mIRC.

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

Jon Thomas _Stoker_ Stokkeland

unread,
Nov 22, 2000, 3:00:00 AM11/22/00
to
>I wish a box to appear in to which I would enter the ident timer to
>turn off.
>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.

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
>


0 new messages