mIRC Home    About    Download    Register    News    Help

Print Thread
#72525 23/02/04 02:29 PM
Joined: Feb 2004
Posts: 14
H
hatten Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Feb 2004
Posts: 14
is it possible to highlight only one specific word in a line (my nick). using the default highlight the whole lines gets highlighted which is rather ugly. i want it like this + window highlight;

yadda yadda yadda $nick yadda yadda .

#72526 23/02/04 03:22 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
//echo -a 4hello :)

the second "box type character" strips all colours/bold/underline from the text that follows it.


New username: hixxy
#72527 24/02/04 01:35 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
on *:text:*:*: { if (word isin $1-) { echo $replace($1-,word,colors and word stuff) | haltdef } }

hope that gives u a bit of an idea =/


Need amazing web design for low price: http://www.matrixn3t.net
#72528 24/02/04 02:21 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
on *:text:*word*:*: { echo $replace($1-,word,colors and word stuff) | haltdef }

much better than a global with a isin check.

#72529 24/02/04 06:07 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Code:
on ^*:text:$($+(*,$me,*)):#:{
  echo -mbfirt # $+(<,$nick,>) $reptok($1-,$me,$+(04,$me,),1,32)
  window -g2 #
  haltdef
}

#72530 24/02/04 09:49 AM
Joined: Feb 2004
Posts: 14
H
hatten Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Feb 2004
Posts: 14
ok i combined some ideas from this thread and heres the result which seems to work;

on ^*:text:*hatten*:#: {
echo -tl # $+(<,$nick,>) $replace($1-,hatten, 4hatten)
window -g2 # | haltdef
}

#72531 24/02/04 10:03 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i knew how to make it, i was just giving him the character to strip colours.


New username: hixxy
#72532 24/02/04 11:07 AM
Joined: Feb 2004
Posts: 14
H
hatten Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Feb 2004
Posts: 14
heh its almost working. when a channel operator is saying my nick the @ symbol is missing. hmm whats missing ?

#72533 24/02/04 11:18 AM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
use: $nick(#,$nick).pnick instead of $nick smile


New username: hixxy
#72534 24/02/04 11:33 AM
Joined: Feb 2004
Posts: 14
H
hatten Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Feb 2004
Posts: 14
yay working 100% now :tongue:


Link Copied to Clipboard