<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/4038" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-12-17T17:32:10-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/4038</id>

		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-12-17T17:32:10-04:00</updated>

		<published>2003-12-17T17:32:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31562#p31562</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31562#p31562"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31562#p31562"><![CDATA[
thanks  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Dec 17, 2003 5:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-17T17:16:52-04:00</updated>

		<published>2003-12-17T17:16:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31560#p31560</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31560#p31560"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31560#p31560"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach utimer [utimers] {if {[string match $mytimer [lindex $utimer 2]]} { killutimer $mytimer }}</code></pre></div>this should do it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 17, 2003 5:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-12-17T15:49:19-04:00</updated>

		<published>2003-12-17T15:49:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31556#p31556</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31556#p31556"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31556#p31556"><![CDATA[
so, how are you checking if that timer is running?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Wed Dec 17, 2003 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-16T13:16:38-04:00</updated>

		<published>2003-12-16T13:16:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31509#p31509</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31509#p31509"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31509#p31509"><![CDATA[
<blockquote class="uncited"><div>does the code below set AND <strong class="text-strong">start</strong> the timer, or only set a var?<div class="codebox"><p>Code: </p><pre><code>set mytimer [utimer $av_seconds [list av:dec $chan]] </code></pre></div>[snip]</div></blockquote>this starts the timer and returns a timer id in the var $mytimer.<blockquote class="uncited"><div>and is this the proper way to kill the above timer?<div class="codebox"><p>Code: </p><pre><code>if {[info exists mytimer]} {   killutimer $mytimer} </code></pre></div></div></blockquote>if $mytimer is running then this will work, but this will also work even when there is no $mytimer running in [utimers] so this will return an error "<strong class="text-strong">invalid timerID</strong>"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Dec 16, 2003 1:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2003-12-15T22:27:03-04:00</updated>

		<published>2003-12-15T22:27:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31482#p31482</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31482#p31482"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31482#p31482"><![CDATA[
does the code below set AND <strong class="text-strong">start</strong> the timer, or only set a var?<div class="codebox"><p>Code: </p><pre><code>set mytimer [utimer $av_seconds [list av:dec $chan]] </code></pre></div><br>and is this the proper way to kill the above timer?<div class="codebox"><p>Code: </p><pre><code>if {[info exists mytimer]} {   killutimer $mytimer} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Dec 15, 2003 10:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-04-08T19:59:34-04:00</updated>

		<published>2003-04-08T19:59:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18755#p18755</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18755#p18755"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18755#p18755"><![CDATA[
It doesn't work like that.<br><br>You need to get the general idea of the syntax of Tcl.<br><br>The "killtimer" command uses a timerid, not a variable name.<br><br>The timerid can however, come from within a variable, thus you use it likke "$timerid".<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Apr 08, 2003 7:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-08T19:50:24-04:00</updated>

		<published>2003-04-08T19:50:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18754#p18754</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18754#p18754"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18754#p18754"><![CDATA[
I do kill it like that but it still doesn't work<br>In one module i put<br><br>set timeovertimer [utimer 60 tgover]<br><br>and in the kill module i say<br><br>killutimer timeovertimer<br><br>And it won't work<p>Statistics: Posted by Guest — Tue Apr 08, 2003 7:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-03T23:04:06-04:00</updated>

		<published>2003-04-03T23:04:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18516#p18516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18516#p18516"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18516#p18516"><![CDATA[
no the utimer command returns a timer id<br><br>set timerid [utimer 30 blah]<br><br>killutimer $timerid<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Apr 03, 2003 11:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-03T21:10:30-04:00</updated>

		<published>2003-04-03T21:10:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18514#p18514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18514#p18514"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18514#p18514"><![CDATA[
So are you say that you can just kill the timer by using the variable name that you assigned it to? You have to preform the utimer on the variable to get the ID and then kill it?<p>Statistics: Posted by Guest — Thu Apr 03, 2003 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-04-02T22:27:48-04:00</updated>

		<published>2003-04-02T22:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18473#p18473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18473#p18473"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18473#p18473"><![CDATA[
You must not be killing the timer right. use killutimer $timerid, where $timerid is the code returned by the utimer command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Apr 02, 2003 10:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-04-02T21:49:48-04:00</updated>

		<published>2003-04-02T21:49:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=18472#p18472</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=18472#p18472"/>
		<title type="html"><![CDATA[Utimer problems]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=18472#p18472"><![CDATA[
I am making a trivia bot and I use utimers to decide when the question goes unansered due to time limit. The only thing is if I use the command to stop the bot it is told to kill all the timer and Display a msg saying that trivia is stoped. The only problem is that the timer still keeps running. I put the stop the msg gets printed but after the time limit comes to an end it continues by calling the proc specified in the timer.<br>Any ideas anyone<br>I am new to tcl so i can use the help lol<p>Statistics: Posted by Guest — Wed Apr 02, 2003 9:49 pm</p><hr />
]]></content>
	</entry>
	</feed>
