This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

mIRC color code? [SOLVED]

Help for those learning Tcl or writing their own scripts.
Post Reply
h
holycrap
Op
Posts: 152
Joined: Mon Jan 21, 2008 11:19 pm

mIRC color code? [SOLVED]

Post by holycrap »

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.

:D
Last edited by holycrap on Thu May 07, 2009 11:06 am, edited 1 time in total.
User avatar
speechles
Revered One
Posts: 1398
Joined: Sat Aug 26, 2006 10:19 pm
Location: emerald triangle, california (coastal redwoods)

Re: mIRC color code?

Post by speechles »

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.

:D
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.
Post Reply