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

	<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>2004-12-30T13:14:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T13:14:35-04:00</updated>

		<published>2004-12-30T13:14:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44742#p44742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44742#p44742"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44742#p44742"><![CDATA[
Thanks user, that did exactly what i needed <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 1:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-12-30T11:42:09-04:00</updated>

		<published>2004-12-30T11:42:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44740#p44740</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44740#p44740"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44740#p44740"><![CDATA[
<blockquote class="uncited"><div>Well, it seems it doesn't work exactly right</div></blockquote>Space is not considered an uppercase character by 'string is upper'. How about something like this?<div class="codebox"><p>Code: </p><pre><code>proc invertCase str {string map {a A A a b B B b c C C c d D D d e E E e f F F f g G G g h H H h i I I i j J J j k K K k l L L l m M M m n N N n o O O o p P P p q Q Q q r R R r s S S s t T T t u U U u v V V v w W W w x X X x y Y Y y z Z Z z} $str}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Dec 30, 2004 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2004-12-30T08:53:51-04:00</updated>

		<published>2004-12-30T08:53:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44737#p44737</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44737#p44737"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44737#p44737"><![CDATA[
i think the only way to do this is split the $text up and change each characters case. loop through foreach $char maybe use a switch statement on it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Dec 30, 2004 8:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T07:36:42-04:00</updated>

		<published>2004-12-30T07:36:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44736#p44736</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44736#p44736"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44736#p44736"><![CDATA[
Well, it seems it doesn't work exactly right<br><div class="codebox"><p>Code: </p><pre><code>[12:35:23] &lt;M&gt; Q caps "moo dss sss"[12:35:26] &lt;Q13&gt; [TCL_OK 0.029ms] MOO DSS SSS[12:35:36] &lt;M&gt; Q caps "MOO DSS SSS"[12:35:39] &lt;Q13&gt; [TCL_OK 0.027ms] MOO DSS SSS[12:35:40] &lt;M&gt; Q caps "MOO Dss SSS"[12:35:43] &lt;Q13&gt; [TCL_OK 0.028ms] MOO DSS SSS</code></pre></div><div class="codebox"><p>Code: </p><pre><code>proc caps { arguments } {if {![string is upper $arguments]} {return [string toupper $arguments]   } else {   return [string tolower $arguments]  }   }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 7:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-12-30T07:14:07-04:00</updated>

		<published>2004-12-30T07:14:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44734#p44734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44734#p44734"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44734#p44734"><![CDATA[
Yeah, this will work :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Dec 30, 2004 7:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2004-12-30T06:42:03-04:00</updated>

		<published>2004-12-30T06:42:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44731#p44731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44731#p44731"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44731#p44731"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if { ![string is upper $text } {    return [string toupper $text]} else {     return [string tolower $text]}</code></pre></div>not sure about this one heres what i would try.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Dec 30, 2004 6:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T06:29:14-04:00</updated>

		<published>2004-12-30T06:29:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44730#p44730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44730#p44730"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44730#p44730"><![CDATA[
Actually, Both <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>It has to detect that it's uppercase and change it to lowercase and change it accordingly and the other way around aswell<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[^DooM^]]></name></author>
		<updated>2004-12-30T06:25:18-04:00</updated>

		<published>2004-12-30T06:25:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44729#p44729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44729#p44729"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44729#p44729"><![CDATA[
I think that is what Metroid was asking. How to detect the case not how to change the case  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3723">^DooM^</a> — Thu Dec 30, 2004 6:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-12-30T06:06:32-04:00</updated>

		<published>2004-12-30T06:06:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44728#p44728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44728#p44728"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44728#p44728"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc caps { text } {  return [string toupper $text] ;# [caps moo] -&gt; MOO}proc caps { text } {  return [string tolower $text] ;# [caps MOO] -&gt; moo}</code></pre></div>Now you have to figure out how to detect that string is lower or upper case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Dec 30, 2004 6:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2004-12-30T03:05:08-04:00</updated>

		<published>2004-12-30T03:05:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44722#p44722</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44722#p44722"/>
		<title type="html"><![CDATA[Making an &quot;caps&quot; proc]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44722#p44722"><![CDATA[
I was wondering if anyone has a clue about making a small "caps" proc, This proc would simply convert lowercase text into big text and the other way around aswell.<br><blockquote class="uncited"><div>[caps moo]<br>&lt;bot&gt; MOO<br>[caps MOO]<br>&lt;bot&gt; moo</div></blockquote>Thanks if any of you could be bored enough to make it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Thu Dec 30, 2004 3:05 am</p><hr />
]]></content>
	</entry>
	</feed>
