| View previous topic :: View next topic |
| Author |
Message |
MrStatic Voice
Joined: 29 Apr 2008 Posts: 3
|
Posted: Wed Apr 30, 2008 3:53 am Post subject: Issue with timers |
|
|
So I am looping through a txt file and running this command
| Code: | | utimer 30 [ list putserv "PRIVMSG $chan :$line" ] |
But that delays the entire output by 30 seconds so itll wait 30 seconds then display the lines without delay, I am attempting to delay each line output |
|
| Back to top |
|
 |
Ofloo Owner
Joined: 13 May 2003 Posts: 953 Location: Belguim
|
Posted: Wed Apr 30, 2008 7:01 am Post subject: |
|
|
it should be something like this ..
| Code: | if {![catch {open "myfile.txt" r} r]} {
set time 0
while {![eof $r]} {
gets $r line
utimer [incr time 30] [list putserv "PRIVMSG $chan :$line"]
}
close $r
} |
_________________ XplaiN but think of me as stupid |
|
| Back to top |
|
 |
|