mIRC Home    About    Download    Register    News    Help

Print Thread
#199089 08/05/08 09:58 PM
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Is there a way to change colors (multicolor) on an echo line?

Something tells me that due to being an echo, the output can't be multicolor.


I registered; you should too.
AWEstun #199090 08/05/08 10:04 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

/help control codes

/echo -a 04this 12is 06multiple 08colors

/echo -a 04,01 this 12is 06multiple 08colors 09with 11background 13color 

RoCk #199106 09/05/08 01:57 AM
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Thanks.

How do I add color to the $nick string:

echo this is a test by $nick


I registered; you should too.
AWEstun #199128 09/05/08 04:30 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

//echo -a 04,01 this 12is 06multiple 08colors 09with 11background 13color $+(09,$nick) 

Like that?

RoCk #199129 09/05/08 04:52 AM
Joined: May 2008
Posts: 329
A
AWEstun Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Originally Posted By: RoCk

//echo -a 04,01 this 12is 06multiple 08colors 09with 11background 13color $+(09,$nick) 

Like that?


Hum, so to color a $string, it needs to be $+(09,$nick) 


I registered; you should too.
AWEstun #199131 09/05/08 05:11 AM
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
or %variable

because mirc doesnt understand what BLAHBLAH$identifer means... doesnt it just look like any static text to you? well thats what mIRC thinks too.

So you do BLAHBLAH $+ $identifier instead.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
AWEstun #199153 09/05/08 07:25 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
You can always use $+ or $+() to combine the color with the identifier or variable, as mentioned. However, if you have other text around the identifier or variable, you don't need to.

Example:
Quote:

//echo -a 04,01 this 12is 06multiple 08colors 09with 11background 13color09 $nick


Notice that the 09 is attached to the word "color" instead of to "$nick". This has no effect on the output, so there's no need to use $+ or $+(). If "color" was an identifier or variable, you'd need to use $+ or $+(). The same is true for any control codes following $nick.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard