This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

for Kill 1 utimer ????

Old posts that have not been replied to for several years.
Locked
d
djcoxe
Voice
Posts: 7
Joined: Fri May 06, 2005 11:05 am

for Kill 1 utimer ????

Post by djcoxe »

For Exemple i have that timer :

Code: Select all

utimer $gsec [list timer:end:nick2 $chan]
return 0
how can I do to kill this utimer before the second $gsec is expire ?

Thanks
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

you can use 'killutimer'

Code: Select all

set timerid [utimer $gsec [list timer:end:nick2 $chan]]
killutimer $timerid
d
djcoxe
Voice
Posts: 7
Joined: Fri May 06, 2005 11:05 am

Post by djcoxe »

i write these but give me this error:

[23:20] <QuixOn> [21:20] Tcl error [contr_risp]: invalid timerID

why ?
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

To make a timer:

Code: Select all

utimer $gsec [list timer:end:nick2 $chan]
To kill a timer:

Code: Select all

foreach t [utimers] {
 if {[string match "*timer:end:nick2*" $t]} {
  killutimer [lindex $t 2]
  }
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked