| View previous topic :: View next topic |
| Author |
Message |
VJain Voice
Joined: 18 Jan 2010 Posts: 4
|
Posted: Thu Jan 28, 2010 12:43 pm Post subject: Timer |
|
|
Hi,
I'm kind of new to TCL and i have a question (I tried searching and nothing came up on the first few pages... sorry, I didn't want to read through 40 pages of threads).
| Code: |
proc timer {min args} {
if {[scan $min %d] % 1 == 0} {
thr
}
}
|
I want to change the timer so it goes every 30 seconds and not every minute. I'm not too sure how to do it since I got this snipping from online.
Thanks,
~VJ |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Jan 28, 2010 4:56 pm Post subject: |
|
|
Use [utimer] instead of [timer] ([utimer] is a timer in seconds, read tcl-commands.doc about its usage). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
VJain Voice
Joined: 18 Jan 2010 Posts: 4
|
Posted: Thu Jan 28, 2010 8:01 pm Post subject: |
|
|
Great, thanks!
~VJ |
|
| Back to top |
|
 |
|