mIRC Homepage
Posted By: hatten highlight only nick - 23/02/04 02:29 PM
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 .
Posted By: tidy_trax Re: highlight only nick - 23/02/04 03:22 PM
Code:
//echo -a 4hello :)

the second "box type character" strips all colours/bold/underline from the text that follows it.
Posted By: ATMA Re: highlight only nick - 24/02/04 01:35 AM
on *:text:*:*: { if (word isin $1-) { echo $replace($1-,word,colors and word stuff) | haltdef } }

hope that gives u a bit of an idea =/
Posted By: DaveC Re: highlight only nick - 24/02/04 02:21 AM
on *:text:*word*:*: { echo $replace($1-,word,colors and word stuff) | haltdef }

much better than a global with a isin check.
Posted By: Iori Re: highlight only nick - 24/02/04 06:07 AM
Code:
on ^*:text:$($+(*,$me,*)):#:{
  echo -mbfirt # $+(<,$nick,>) $reptok($1-,$me,$+(04,$me,),1,32)
  window -g2 #
  haltdef
}
Posted By: hatten Re: highlight only nick - 24/02/04 09:49 AM
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
}
Posted By: tidy_trax Re: highlight only nick - 24/02/04 10:03 AM
i knew how to make it, i was just giving him the character to strip colours.
Posted By: hatten Re: highlight only nick - 24/02/04 11:07 AM
heh its almost working. when a channel operator is saying my nick the @ symbol is missing. hmm whats missing ?
Posted By: tidy_trax Re: highlight only nick - 24/02/04 11:18 AM
use: $nick(#,$nick).pnick instead of $nick smile
Posted By: hatten Re: highlight only nick - 24/02/04 11:33 AM
yay working 100% now :tongue:
© mIRC Discussion Forums