mIRC Home    About    Download    Register    News    Help

Print Thread
Control code help #241554 03/05/13 05:22 AM
Joined: May 2013
Posts: 4
O
Orion96 Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: May 2013
Posts: 4
How do you change the color of a certain word that other people type? I tried the Control+k one and it didn't work.

Re: Control code help [Re: Orion96] #241557 03/05/13 07:36 AM
Joined: Dec 2011
Posts: 13
J
JohnEricNO Offline
Pikka bird
Offline
Pikka bird
J
Joined: Dec 2011
Posts: 13
Use alt+k instead.

Re: Control code help [Re: JohnEricNO] #241576 03/05/13 09:01 PM
Joined: May 2013
Posts: 4
O
Orion96 Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: May 2013
Posts: 4
That doesn't change the certain word color though.

Re: Control code help [Re: Orion96] #241577 03/05/13 09:07 PM
Joined: Oct 2004
Posts: 8,327
Riamus2 Offline
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,327
You would have to script it. Either use $replace() or use $regsubex() in an on TEXT event and have the event halt the normal display and show your version. Or, if you don't need the specific word highlighted and it's okay to highlight the entire line, then just use the highlight feature.


Invision Support
#Invision on irc.irchighway.net
Re: Control code help [Re: Orion96] #241587 04/05/13 02:17 PM
Joined: Dec 2011
Posts: 13
J
JohnEricNO Offline
Pikka bird
Offline
Pikka bird
J
Joined: Dec 2011
Posts: 13
I really should have my coffee first. This will show the channel text event exactly as mirc would, except for the highlighted word. Where you see xx4 and xx1, type ctrl-k4 and ctrl-k1

ON ^*:TEXT:*:#: {
echo $chan $chr(91) $+ $left($time,5) $+ $chr(93) < $+ $nick $+ > $replace($1-,word,xx4wordxx1)
halt
}

Last edited by JohnEricNO; 04/05/13 02:19 PM.
Re: Control code help [Re: Riamus2] #241593 04/05/13 07:46 PM
Joined: May 2013
Posts: 4
O
Orion96 Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: May 2013
Posts: 4
How do you highlight? The help doesn't say how to use it.

Re: Control code help [Re: Orion96] #241596 04/05/13 11:13 PM
Joined: Oct 2012
Posts: 164
D
Deega Offline
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
Press Alt+B in mIRC and the Address Book will appear. You'll see the Highlight tab, click on that.
First ensure the Enable HIghlight checkbox is checked, then click Add.
Add a word, select where to watch for it... Message (or nickname/both).
Choose a color (and sound file if you like).
Check the Flash and Tip boxes as you like.
Then OK and OK

See also /help highlight

Re: Control code help [Re: Deega] #241607 05/05/13 06:14 PM
Joined: May 2013
Posts: 4
O
Orion96 Offline OP
Self-satisified door
OP Offline
Self-satisified door
O
Joined: May 2013
Posts: 4
Ok. Thank you!