mIRC Homepage

Highlight-triggered scripts

Posted By: OfOrosian

Highlight-triggered scripts - 27/02/04 02:50 PM

Just a quickie to ask for a command, for example on highlight, so that i may write a script to trigger whenever something on the highlight list is typed. I don't suppose it'd be too hard, and it'd prove most handy, at least to myself.
Posted By: theRat

Re: Highlight-triggered scripts - 27/02/04 04:54 PM

on *:text:*:#: {
if (( $1 !isnum ) && ( $highlight($1-) )) {
echo $color(highlight) -t $chan WARNING! WARNING! HIGHLIGHT!!!!!!!
and same with on action?
Posted By: Doqnach

Re: Highlight-triggered scripts - 01/03/04 02:29 PM

$highlight should have a second parameter, $highlight(N/text,n) where n makes sure the first parameter specified is a number with the purpose to retrieve a highlight, without n specified the first parameter would be a text...

you also should be able to specify if the text you put in is the nick, because highlighting can be done on nicks but there is no good way to check on it without using a huge script to first retrieve all options of a $highlight and manually comparing...

there are also a few bugs in $highlight you should be aware off...

I think $highlight needs a good work over!

there have been a few suggestions for improvements already (among which one of mine for regexp support)
Posted By: Iori

Re: Highlight-triggered scripts - 02/03/04 06:58 AM

Should check if the whole string is (not) a number, not only the first word.
on *:text:*:#:{
  if $1- !isnum && $highlight($1-).color {
    echo $ifmatch -ita # WARNING! WARNING! HIGHLIGHT!!!!!!!
© 2019 mIRC Discussion Forums