egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mIRC color code? [SOLVED]

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
holycrap
Op


Joined: 21 Jan 2008
Posts: 152

PostPosted: Thu Dec 25, 2008 10:56 am    Post subject: mIRC color code? [SOLVED] Reply with quote

Hello,

I was wondering, if I put mIRC color code into .tcl file would that somehow messes up something somewhere?

For exe: If I put this "4" which is red in mIRC in .tcl file.

I ran the .tcl file and it gave me no errors, but just wondering if like something inside routine or something is messed up.

Thanks.

Very Happy


Last edited by holycrap on Thu May 07, 2009 11:06 am; edited 1 time in total
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Thu Dec 25, 2008 12:35 pm    Post subject: Re: mIRC color code? Reply with quote

holycrap wrote:
Hello,

I was wondering, if I put mIRC color code into .tcl file would that somehow messes up something somewhere?

For exe: If I put this "4" which is red in mIRC in .tcl file.

I ran the .tcl file and it gave me no errors, but just wondering if like something inside routine or something is messed up.

Thanks.

Very Happy

It's usually better to avoid embedding control characters and instead give the escape sequences needed to generate them. This way the script won't choke on others using different platforms/editors/charsets than you.

"\00304" is the equivalent to what your doing. Just remember to turn the color off "\003" when trying to output plain text on the same line, otherwise the color-effect will bleed into the entire line.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber