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.

Running multiple commands after a certain time...

Old posts that have not been replied to for several years.
Locked
J
Jimbo

Post by Jimbo »

How do i run multiple commands after a certain time...

utimer 10 {
blah
blah
}

^^^^ doesnt work....

Thanks for any help!!!
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

utimer 10 { blah ; bleh ; bloop ; dayum }
etc
User avatar
stdragon
Owner
Posts: 959
Joined: Sun Sep 23, 2001 8:00 pm
Contact:

Post by stdragon »

Probably the best thing to do is make a proc that has all your code in it, and just call the proc from the timer.

Code: Select all

proc do_stuff {} {
  blah1
  blah2
  blah3
}

utimer 10 do_stuff
J
Jimbo

Post by Jimbo »

Cheers guys!!!
Locked