Another highlight script

By Renegade on Sep 13, 2008

Well an extremly simple highlight :) works perfectly for me and quite a few other users I have handed it too..

Thanks to Fan_Of_Your_Mom.. We coded it at the same time and thanks to Akishoot who along with poon practically tought me how to mirc code lol

I added an @window for the simple fact i always miss the highlight anyways xD

Any comments are welcome of course

P.S go easy on me lol first I have submitted XD

on $*:text:$(/ $+ $me $+ /iS):#: {
  if (%Highlight) {
    window -n @Highlight
    echo @Highlight 7>4Attention7< 7( $+ $time(h:nn:ss TT) $+ 4) Your nick was mentioned by7 $nick on4 $network in4 $chan with the message: $+(7",$1-,7")
    echo -a 7>4Attention7< 14Your nick was mentioned by7 $nick on4 $network in7 $chan
  }
}

menu @Highlight {
  Clear:clear $active
  Close:close -@ $active
}

on *:TEXT:*:#:{
  if ($me isin $1-) {
    if ($appactive == $false) {
      if ($tip(NAlert,Attention!,$nick said your name on $chan $+ .,10) == 1) { .halt }
    }
  }
}

menu menubar,channel {
  $iif(%Highlight != $false,[On],[Off]) Highlight:{
    set %Highlight $iif(%Highlight == $false,$true,$false)
    echo -a 7>4Attention7< 14Hightlights Are Now 7 $iif(%Highlight == $true,ACTIVE,INACTIVE)
  }
}

Comments

Sign in to comment.
Kuya-Dave   -  Mar 13, 2010

Not bad.. I like it but should ignore current active channel.
if possible to ignore active channel unless idle would be a major bonus.

 Respond  
Renegade   -  May 24, 2009

/me lulz in the face of ego.

 Respond  
a13x   -  Nov 02, 2008

on $:text:$($+(/,$me,|,$mnick,/iS)):#: {
if (%Highlight) && ($active != $chan) {
window -n @Highlight
echo @Highlight 2>10>7Attention10<2< 2(01 $+ $time(HH:nn:ss 10 $+ TT) $+ 2)14 Your nick was mentioned by10 $nick 14on10 $network 14in10 $chan 14with the message: $+(10",$1-,10")
echo -a 2>10>7Attention10<2< 14Your nick was mentioned by10 $nick 14on10 $network 14in10 $chan
if ($appactive == $false) {
noop $tip(NAlert,Attention!,$nick said your name on $network in $chan $+ .,10)
}
}
}
on
:START:set %highlight on
alias +highlight set %highlight on | echo -a 2>10>7Attention10<2< 14highlights are now 10on!
alias -highlight unset %highlight | echo -a 2>10>7Attention10<2< 14highlights are now 10off!

;better version :D

 Respond  
a13x   -  Sep 20, 2008

nice 1 :D

 Respond  
Renegade   -  Sep 13, 2008

Ooops :s good point mountaindew i do have a menu channel for it somewhere

Updated :) thanks for heads up

 Respond  
guest598594   -  Sep 13, 2008

You check if (%highlight), but you never set it. So either the user manually types //unset %highlight or //set %highlight on, (if so, you should put that in the intro), or you could make a popup menu that enables/disables it.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.