mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2006
Posts: 23
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: May 2006
Posts: 23
For some reason, my switchbar in mIRC will no longer highlight based on events/messages/highlights. Below is my on TEXT event. I'd greatly appreciate any help I can get in this. Also note, most of this code is salvaged from the old Polaris plugin, which used basically the exact same code (including the haltdef), and my switchbar worked in that.

Code:
on ^*:text:*:#:{
  var %nkstl = $nicklevel($nick, $chan)
  if ($istok($replace($rpunct($1-),$rpunct($me),$me),$me,32) == $true) {
    if ($active != $chan) {
      echo -a  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick)  $+ $color(highlight) $+ $server $+ : $+ $chan $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
      echo $chan  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
    }
    else if ($active == $chan) {
      echo -a  $+ $color(highlight) $+ $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $+ $color(highlight) $1-
    }
    beep 1
    ;unset %nkstl
    ;haltdef
  }
  else if (($me ison $chan) && ($1- != $null)) {
    echo $chan $timestamp 14 $+ $chr(91) $+ 4 $+ $iif(%nkstl == $null, $+ $chr(32) ,%nkstl) $+  $+ $nickstyle($nick) $+ 14 $+ $chr(93) $+  $1-
  }
  unset %nkstl
  haltdef
}

Joined: May 2006
Posts: 122
J
Vogon poet
Offline
Vogon poet
J
Joined: May 2006
Posts: 122
firstly check out the -c switch with echo to get rid of those $color identifiers
also check the /window -g switch for highlighting purposes
/help /echo
/help @windows


If only women came with popup menus and online help.
Joined: Sep 2005
Posts: 116
I
Vogon poet
Offline
Vogon poet
I
Joined: Sep 2005
Posts: 116
i wont do it becase u haltdef at the ned so the original function is nolonger called

Joined: May 2006
Posts: 23
K
Ameglian cow
OP Offline
Ameglian cow
K
Joined: May 2006
Posts: 23
Quote:
firstly check out the -c switch with echo to get rid of those $color identifiers
also check the /window -g switch for highlighting purposes
/help /echo
/help @windows


Thanks, actually, that helped a LOT.


Link Copied to Clipboard