| View previous topic :: View next topic |
| Author |
Message |
holycrap Op
Joined: 21 Jan 2008 Posts: 152
|
Posted: Thu Dec 25, 2008 10:56 am Post subject: mIRC color code? [SOLVED] |
|
|
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.

Last edited by holycrap on Thu May 07, 2009 11:06 am; edited 1 time in total |
|
| Back to top |
|
 |
speechles Revered One

Joined: 26 Aug 2006 Posts: 1398 Location: emerald triangle, california (coastal redwoods)
|
Posted: Thu Dec 25, 2008 12:35 pm Post subject: Re: mIRC color code? |
|
|
| 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.
 |
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 |
|
 |
|
|
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
|
|