Highlight to @Log window

By Hrki on Nov 14, 2009

When someone highlights you, snippet write text in separated window, simple as that...

Image

on *:TEXT:*:#:{ if ($me isin $1-) { if (!$window(@Log)) { window -nk0 @Log | echo @Log $timestamp < $+ $nick @ $chan $+ > $1- } | else echo @Log $timestamp < $+ $nick @ $chan $+ > $1- } }

Comments

Sign in to comment.
Siaukia   -  Nov 24, 2012

Can this be expanded to log 1 line before and 2 lines after the highlighted words/nicks was said?

 Respond  
Jenny   -  Nov 22, 2010

Thnx a lot Jethro_

 Respond  
Jethro   -  Nov 22, 2010

Jenny:

on *:text:*:#:{
  var %x $me nick1 nick2 nick3 nick4 nick5 nick6 nick7 nick8
  var %y $numtok(%x,32)
  while %y {
    if $wildtok($strip($1-),$token($+(*,%x,*),%y,32),1,32) {
      $iif(!$window(@log),window -ak0 @Log)
      echo -t @Log < $+ $nick(#,$nick).pnick @ $chan $+ > $1-
    }
    dec %y
  }
}

All you gotta do is replace nick1, nick2, nick3, etc..with the nicks you want to add to be logged.

 Respond  
Jenny   -  Nov 22, 2010

I like this, very efficient but it lacks the ability to add more nicks. Is it possible for you to extend this?

 Respond  
CadetAndrew   -  Nov 14, 2009

Not taking down your script or anything, I have a similar one here:

on ^*:TEXT:$($+(*,$me,*)):*: { 
  $iif($window(@Highlights),$null,window -n @Highlights) 
  echo 3 -tml @Highlights 11,1[ $date ] ---- 8,1 $nick  $+ highlighted you in 4,1 $+ $chan  $+ on $+ 9,1 $network  $+ at 13,1 $time  $+ .
  echo 13 -a * Logged the highlight from $nick $+ .
}

Just like that one, except yours seems to also log the text, mine won't. So great job!

xplo  -  Mar 16, 2017

i edited your code :P

on ^*:TEXT:$($+(*,$me,*)):*: { 
  $iif($window(@Highlights),$null,window -n @Highlights) 
  echo 3 -ml @Highlights $+([,$fulldate,]) ---- $+($chr(3),8,$nick,$chr(3)) highlighted you in$chr(3)4 $chan $chr(3)on$chr(3)9 $network $chr(3)at$chr(3)7 $time
  echo 3 -ml @Highlights $+([,$fulldate,]) They said: $1-
}

please ignore, this is a test for Hawkee:

$+($chr(3),8,yellowtext,$chr(3)) should be the same as 
$+(8,yellowtext,) (note the CTRL+K after the , in the second one that does not show, but does when you click EDIT.)
Sign in to comment

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.