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.

faster bind time??

Old posts that have not been replied to for several years.
Locked
G
Gorby

faster bind time??

Post by Gorby »

Hi,
I'v been looking for a way to make a script loop every 15sec.
The only way i'v been abel to do this is with bind time.. but that only works for 1 min loops if im correct.

I'v tryed with utimer but i can't use return in that because it only returns the timer id.. i think thats what it is :) and i need the return value for the next loop.

Please, can anyone help me with this?
s
spyda
Halfop
Posts: 64
Joined: Mon Aug 12, 2002 2:22 am
Location: Australia

Post by spyda »

Code: Select all

set looptimer "15"

if {[utimerexists do:timer] != ""} {killutimer $doagain} 

proc do:timer {} {
  global looptimer
  if {
      do.what.you.what.here.....
   }
  set doagain [utimer $looptimer do:timer]
}

set doagain [utimer $looptimer do:timer]
Hope that starts you.

------------
ThePope
Locked