mIRC Home    About    Download    Register    News    Help

Print Thread
#221518 23/05/10 12:15 AM
R
Richard_B
Richard_B
R

I would like to emulate the action of a JOIN command with respect to writing text to the channel joined adding some useful information about the nickname who joined.

/echo <color> $<channel> <message text> writes <message text> to the client's window only.

/msg and /say do not have a provision for specifying color of the message text. Despite a search of the help files and the support forums I can't find a way to imbed a color code in the message as would occur if typing ctrl-K<color number> in the input box.

Any suggestions are welcome, including, "See <topic> in the help file."

#221521 23/05/10 12:38 AM
Joined: Aug 2004
Posts: 7,168
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,168
You can imbed the color(s) you want by using $chr(3) in place of where you would press Ctrl+k

Thus Ctrl+k 4 and $+($chr(3),4) are the same to mIRC.

#221523 23/05/10 02:09 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Or just use Ctrl-K in your script.

Just keep in mind for your Join message that everyone is going to see the real message AND your message. I think many people would find that to be annoying, but it really depends on the channel and those in it.

Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
It's kind of a hassle having to press ctrl-k every single time.

R
Richard_B
Richard_B
R
thanks to Russel, Riamus, and Tamao for the replies... intuitively I knew there had to be a way, but perhaps the simplicity of the method eluded me.

Richard

Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Originally Posted By: Tomao
It's kind of a hassle having to press ctrl-k every single time.


Hm? How is Ctrl-K more of a hassle than $+($chr(3), )? It's a lot fewer keys to press.


Link Copied to Clipboard