mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45

So, what's wrong with this?


Code:
on ^*:text:*:#chan: {
  set %hl.pre * $+ [PRE] $+ *
  if ( %hl.* isin $1- ) {
    set %hltext $1-
    $chanmsg
  }
}


alias chanmsg { 
  if ($active = @messages) halt
  else window -k0n +l @Messages 50 50 500 360 @messages Tahoma 11
  if ($active != $chan) {
    echo -at 8 $+ $1-
  }
  if ($active = @messages) { haltdef }
  echo $color(normal text) @messages  $+ $nick $+  - $+ $chr(155) $network $chr(92) $chan $chr(92) $time $chr(92) $asctime(dd/mm) $+ - $+ $asctime(yy)
  echo $color(normal text) @messages %hltext
  echo $color(normal text) @messages -----------------------------------
}

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
My guess would be that you're calling the variable %hl.* instead of %hl.pre.
Also, you do not give us enough information to tell you what's wrong. Please be more specific next time.


Those who can, cannot. Those who cannot, can.
Joined: Dec 2002
Posts: 45
P
piko Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Dec 2002
Posts: 45
Originally Posted By: Kardafol
My guess would be that you're calling the variable %hl.* instead of %hl.pre.
Also, you do not give us enough information to tell you what's wrong. Please be more specific next time.



Sorry Kardafol...

Well, it does nothing..
I've tried with "%hl.pre isin $1-" to, but it did not work..

I want the PRE's in a @Window, that's what I'm trying to do.. wink

Any more info you need? smile

Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
What do the "pre"s look like?
Give me some examples of the text.


Those who can, cannot. Those who cannot, can.
Joined: Jan 2007
Posts: 259
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Jan 2007
Posts: 259
Code:
alias chanmsg { 
tokenize 32 %hltext
  if ($active = @messages) halt
  else window -k0n +l @Messages 50 50 500 360 @messages Tahoma 11
  if ($active != $chan) {
    echo -at 8 $+ $1-
  }
  if ($active = @messages) { haltdef }
  echo $color(normal text) @messages  $+ $nick $+  - $+ $chr(155) $network $chr(92) $chan $chr(92) $time $chr(92) $asctime(dd/mm) $+ - $+ $asctime(yy)
  echo $color(normal text) @messages $1-
  echo $color(normal text) @messages -----------------------------------
}

Try that.

Last edited by Kardafol; 10/04/07 04:02 PM.

Those who can, cannot. Those who cannot, can.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
I'm just guessing about how the message in the channel is formatted, but this should do it (untested).

Code:
on ^*:text:*[PRE]*:#chan: {
  if ($active == @Messages) { return }
  if (!$window(@Messages)) { window -k0n +l @Messages 50 50 500 360 @Messages Tahoma 11 }
  if ($active !ischan) {
    echo -at 8 $+ $1-
    haltdef
  }
  echo $color(normal) @Messages  $+ $nick $+  - $+ $chr(155) $network $chr(92) $chan $chr(92) $time $chr(92) $asctime(dd/mm) $+ - $+ $asctime(yy)
  echo $color(normal) @Messages $1-
  echo $color(normal) @Messages -----------------------------------
  haltdef
}


You can try this and then be specific about what it does that it shouldn't and/or what it doesn't do that it should. Also, an example of the PRE line would help.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard