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.

Tcl_CreateTimerHandler

Old posts that have not been replied to for several years.
Locked
b
beaver3

Post by beaver3 »

Heya folks. I have a quick question. As I'm sure you notice, I am not a tcl scripter :smile:

Anyway, say I have a short script.. Something like this:

proc pubm:test {nick output binary chan text} {
set text {1 2 3 4 5 6 7}
set text [ lindex $text 6 ]
puts $text

Somewhere else in this script, it calls that proc, but I want it to wait 30 minutes before doing so. I also dont want it to halt the script while waiting.

I think I found what I was looking for here:
http://tcl.activestate.com/man/tcl8.3/T ... erHdlr.htm
But I am unable to understand how to utilize it.

Please help, or hint. Any help is appriciated :smile:

/Beaver3
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Tcl_CreateTimerHandler is a C function, not a Tcl command.

You're looking at the TclLib manual, which is the C functions that Tcl provides. Eggdrop script functions are located in the eggdrop/doc/tcl-commands.doc file. The command you're probably interested in is 'timer'.

(Btw, for Tcl commands, look in the TclCmd manual, not the TclLib manual.)
b
beaver3

Post by beaver3 »

Sweet. Thanks for responding :smile:
Locked