mIRC Home    About    Download    Register    News    Help

Topic Options
#190745 - 25/11/07 04:45 PM @highlight
weedorcollege Offline
Babel fish

Registered: 11/11/07
Posts: 50
Loc: United States of America
Like a good bunch of people, I have many highlight entries. When I come back from awayness, I might have a bunch of channels highlighted and I'll have to scroll up to find the highlights. I saw another topic someone suggested a Jump to highlight command.

However, I suggest an @window be made. Highlights would show up in only when you have an active /away command going. It would be very helpful. It should be able to list the person's name, the channel, and obviously the message.

As such:

<channel> : <nick> message.

I'm no coder, so if anyone wants to take a crack at this, I'd be appreciative.

Top
#190753 - 25/11/07 05:38 PM Re: @highlight [Re: weedorcollege]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2007

You know what would be nice, a HIGHLIGHT event that would basically behave just like the TEXT event with the same identifiers and all. Also an identifier for the word/string that triggered...

$1- would return the entire message just like the TEXT event.
$highlight would return the word or string that triggered the event.

With this event you could do...

Code:

on *:HIGHLIGHT:*:#: {
  if (!$window(@Highlight)) window @Highlight
  aline @Highlight $timestamp # : $+(<,$nick,>) $1-
  aline @Highlight -
}



~ Edit ~
If not the HIGHLIGHT event, then maybe a new IF statement operator for the TEXT event, ISHIGHLIGHT...

Code:

on *:TEXT:*:#: {
  if ($1- ishighlight) {
    if (!$window(@Highlight)) window @Highlight
    aline @Highlight $timestamp # : $+(<,$nick,>) $1-
    aline @Highlight -
  }
}



Any opinions?


Top
#190755 - 25/11/07 06:09 PM Re: @highlight [Re: RoCk]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3438
Loc: France
The ishighlight operator is a good idea with an $ident that refer to the string, ($highlight is already used).
And if there are more than one string that is triggered, we should be able to use something like $hl(N) that return the N match string or if N = 0 the number of match
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#190760 - 25/11/07 07:42 PM Re: @highlight [Re: weedorcollege]
Horstl Offline
Hoopy frood

Registered: 03/11/06
Posts: 1559
Loc: Germany
Originally Posted By: weedorcollege
I saw another topic someone suggested a Jump to highlight command.

However, I suggest an @window be made.

In this thread you refer to, $ishighlight had been suggested - and with such an identifier (that we do not have (so far)), your "custom window listing all highlights if set away" could be made quite easy - and a lot of other interesting highlight-related scripts.

You request a precast sollution - I'd like to have the means to build indivitual sollutions (like yours) instead smile
Be it a new event, an operator or an identifier, I'd be glad to see a secure method to pick highlighting lines. laugh

Top
#190770 - 25/11/07 09:37 PM Re: @highlight [Re: weedorcollege]
weedorcollege Offline
Babel fish

Registered: 11/11/07
Posts: 50
Loc: United States of America
I simply want an @window to come up whenever someone highlights me in a channel. I want it to be in this simple format: <Channel>: [Timestamp] <User nick> Message here...

Example: #mIRC: [05:40:54pm] <theweed> Horstl is the man.

Top
#191187 - 04/12/07 08:43 PM Re: @highlight [Re: weedorcollege]
foshizzle Offline
Fjord artisan

Registered: 20/08/07
Posts: 333
Loc: Silicon Valley
you dont need a highlight for that.
Code:
on *:TEXT:*:*: { if ($me iswm $1-) { window -dok @User-Highlight | aline 3 @User-Highlight $nick said $1- in $chan at $fulltime $+ . } }

you may need to fix the aline command, I'm at school so i dont have mIRC and I only do picwins



Edited by foshizzle (04/12/07 08:44 PM)
_________________________
This is not the signature you are looking for

Top
#191191 - 04/12/07 09:25 PM Re: @highlight [Re: foshizzle]
RoCk Offline
Hoopy frood

Registered: 16/12/02
Posts: 2007

I can't believe none of the minds on these forums thought of that. shocked

It's not the point that highlight isn't needed for it.

Top
#191259 - 06/12/07 03:25 AM Re: @highlight [Re: RoCk]
PrefeX Offline
Mostly harmless

Registered: 06/12/07
Posts: 1
I'll rather want to see channel/network specific highlighting

Top