mIRC Home    About    Download    Register    News    Help

Print Thread
#221518 23/05/10 12:15 AM
Joined: May 2010
Posts: 36
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: May 2010
Posts: 36

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."

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
It's kind of a hassle having to press ctrl-k every single time.

Joined: May 2010
Posts: 36
R
Ameglian cow
OP Offline
Ameglian cow
R
Joined: May 2010
Posts: 36
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,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard