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

	<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>2006-03-14T11:15:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-03-14T11:15:19-04:00</updated>

		<published>2006-03-14T11:15:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61058#p61058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61058#p61058"/>
		<title type="html"><![CDATA[usage of &quot;after&quot; command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61058#p61058"><![CDATA[
Well I haven't used after till now, because I did not have a reason for it till now. First you will not be able to use it withing a loop of any kind. Best you save were you have been in a global var or forward it via argument and then call the command from the beginning. If I read manual right you should be able to able to use it like:<div class="codebox"><p>Code: </p><pre><code>after 100 myproc $myarg1 $myarg2 $myarg3 $position</code></pre></div>should execute it after 100ms. But I am not sure if this will really work in eggdrops. Maybe you can use the event functions built in eggdrop. No idea if custom events can be bound like "bind evnt - custom proc" and trigger with "event custom".<br>I personally would try to optimize the script to not consume that much CPU time, because I would probably get kicked of my shell for doing so <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<br><br>Edit:<div class="codebox"><p>Code: </p><pre><code>[-RO^Bot-] [12:16:22] tcl: evaluate (.tcl): set testtime [clock clicks -milliseconds]; after 1000 putdcc 13 {[expr {[clock clicks -milliseconds] - $testtime}]ms}[-RO^Bot-] Tcl: after#5[-RO^Bot-] 1010ms</code></pre></div>works like a charm<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Tue Mar 14, 2006 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[deadite66]]></name></author>
		<updated>2006-03-14T02:51:02-04:00</updated>

		<published>2006-03-14T02:51:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61047#p61047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61047#p61047"/>
		<title type="html"><![CDATA[usage of &quot;after&quot; command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61047#p61047"><![CDATA[
<a href="http://www.tcl.tk/man/tcl8.4/TclCmd/after.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/after.htm</a><br><br>i believe the after command in eggdrop has to run a command/proc you can't use it as a pause.<br><br>i tried it once in a script as a pause and the irc logs times recorded were all out of sync.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6296">deadite66</a> — Tue Mar 14, 2006 2:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dedan]]></name></author>
		<updated>2006-03-13T20:56:05-04:00</updated>

		<published>2006-03-13T20:56:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=61043#p61043</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=61043#p61043"/>
		<title type="html"><![CDATA[usage of &quot;after&quot; command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=61043#p61043"><![CDATA[
i searched the forum and found nothing to my suprise.<br><br>i am having a problem finding the <br>proper format of this command, i<br>am not even sure it can be used in<br>the way i need it.<br><br>I have a loop that will loop about<br>60,000 times and i want to place a "pause"<br>in it.<br><div class="codebox"><p>Code: </p><pre><code>  foreach t $tenthousands {    blah    blah    after   }</code></pre></div><br>thanks for you help  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cool.gif" width="15" height="15" alt="8)" title="Cool"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3472">Dedan</a> — Mon Mar 13, 2006 8:56 pm</p><hr />
]]></content>
	</entry>
	</feed>
