<?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/10544" />

	<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>2005-09-21T16:51:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T16:51:41-04:00</updated>

		<published>2005-09-21T16:51:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55982#p55982</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55982#p55982"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55982#p55982"><![CDATA[
yeah it works that way, and you are crying to be hacked or at least exploited <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>see Script Security topic in FAQ forum<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 4:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-21T16:38:59-04:00</updated>

		<published>2005-09-21T16:38:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55980#p55980</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55980#p55980"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55980#p55980"><![CDATA[
sorry sorry sorry for forgetting the "" quotes, but with these it works... this time tested <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">.<br><blockquote class="uncited"><div>[21:33:07] #De_Kus# set X 1<br>Ok, set.<br>.loadtcl test<br>[21:33:15] #De_Kus# loadtcl test<br>hi2<br>im2<br>cool2<br>hi<br>im<br>cool</div></blockquote>content of test.tcl:<div class="codebox"><p>Code: </p><pre><code>set timerID1 [utimer $X "\    putdcc 11 hi;\    putdcc 11 im;\    putdcc 11 cool;\"]eval {set timerID2 [utimer $X "    putdcc 11 hi2;    putdcc 11 im2;    putdcc 11 cool2;"]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Sep 21, 2005 4:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T15:07:55-04:00</updated>

		<published>2005-09-21T15:07:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55973#p55973</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55973#p55973"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55973#p55973"><![CDATA[
<blockquote class="uncited"><div>if you want multiline without {} you can always escape (blackslash) the newline character like<br><div class="codebox"><p>Code: </p><pre><code>set timerID [utimer $X \    statement1;\    statement2;\    statement3;\    ... \]</code></pre></div></div></blockquote>this is incorrect<br><br>backslash is needed only if you want to break a statement; in your code you are breaking [utimer] invocation, but whitespaces will still cause an error, since [utimer] expects fixed number of arguments, it's not like [concat] or [eval]<br><blockquote class="uncited"><div>this will ensure evalation of vars ands commands inside and still keep the visual advantage of multiline ^^</div></blockquote>wrong, backslash has nothing to do with evaluation whatsoever<br><blockquote class="uncited"><div>alternately you should be able to do:<br><div class="codebox"><p>Code: </p><pre><code>eval {set timerID [utimer $X     statement1;    statement2;    statement3;    ...]}</code></pre></div></div></blockquote>you should try it yourself before recommending it; that won't work at all<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-21T13:09:10-04:00</updated>

		<published>2005-09-21T13:09:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55963#p55963</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55963#p55963"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55963#p55963"><![CDATA[
if you want multiline without {} you can always escape (blackslash) the newline character like<br><div class="codebox"><p>Code: </p><pre><code>set timerID [utimer $X \    statement1;\    statement2;\    statement3;\    ... \]</code></pre></div>this will ensure evalation of vars ands commands inside and still keep the visual advantage of multiline ^^<br>alternately you should be able to do:<br><div class="codebox"><p>Code: </p><pre><code>eval {set timerID [utimer $X     statement1;    statement2;    statement3;    ...]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Sep 21, 2005 1:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-21T00:51:29-04:00</updated>

		<published>2005-09-21T00:51:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55948#p55948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55948#p55948"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55948#p55948"><![CDATA[
yea i noticed,  i was working at it at night. i solved it by making the timer call a procedure instead of shuving everything in the {}<br>i still have a question to ask , but am late i'll get back to it in about an hour when am at work and am free.<br><br>thanks alot for your help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Sep 21, 2005 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-21T00:41:58-04:00</updated>

		<published>2005-09-21T00:41:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55946#p55946</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55946#p55946"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55946#p55946"><![CDATA[
no it doesn't<br><br>suppose you have:<div class="codebox"><p>Code: </p><pre><code>proc foo {nick uhost hand chan args} {   set tid [utimer 10 {putchan $chan "$nick, you are lame"}]}</code></pre></div>this will raise an error when the timer expires: <div class="codebox"><p>Code: </p><pre><code>Tcl error: can't read "chan": no such variable</code></pre></div>because when your [utimer] script is evaluated, current execution point is no longer inside proc [foo], and $chan is variable local to that proc; furthermore, the braces you use prevent variable substitution when the interpreter is still executing your [utimer] statement inside [foo]<br><br>you should use <ul> <li>instead, to force variable substitution:<div class="codebox"><p>Code: </p><pre><code>proc foo {nick uhost hand chan args} {   set tid [utimer 10 [list putchan $chan "$nick, you are lame"]]}</code></pre></div></li></ul><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Sep 21, 2005 12:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-20T04:34:22-04:00</updated>

		<published>2005-09-20T04:34:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55923#p55923</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55923#p55923"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55923#p55923"><![CDATA[
i wish i could try it now, am writing the script at work hehe<br><br>i didn't get what is exactly meant by  "your statements body will be evaluated outside the context of [utimer]"<br>they wont execute after X seconds? or what?<br>how about if i made them <br><div class="codebox"><p>Code: </p><pre><code>set timerID [utimer $X {statement1;statement2;statement3;}]</code></pre></div>does it make any difference?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Tue Sep 20, 2005 4:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-20T04:30:28-04:00</updated>

		<published>2005-09-20T04:30:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55922#p55922</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55922#p55922"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55922#p55922"><![CDATA[
try it<br><br>beware however that your statements body will be evaluated outside the context of [utimer]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Sep 20, 2005 4:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2005-09-20T03:59:08-04:00</updated>

		<published>2005-09-20T03:59:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55921#p55921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55921#p55921"/>
		<title type="html"><![CDATA[timer and timer id]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55921#p55921"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer $X {    statement1    statement2    statement3    ...}</code></pre></div>how can i get the utimer id when?<br>i know it's usually set timerID [utimer x bla]<br>but when i have the timer the way i put it, (with a {} chunk) is <br>using the following correct?<div class="codebox"><p>Code: </p><pre><code>set timerID [utimer $X {    statement1    statement2    statement3    ...}]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Tue Sep 20, 2005 3:59 am</p><hr />
]]></content>
	</entry>
	</feed>
