mIRC Homepage
Posted By: wrigsted overview over all channels? - 18/03/11 01:01 PM
Is there a way to see what happens in more than one channel in one window in mirc?
Posted By: RusselB Re: overview over all channels? - 18/03/11 01:36 PM
Technically, yes. You could write (or get written) a script that makes a custom window (/window) then captures the events (ACTION, NOTICE, TEXT) in the various channels, then puts the information into the custom window.

Personally, I think this could end up being very confusing, especially if you're on busy channels.
Posted By: wrigsted Re: overview over all channels? - 18/03/11 06:17 PM
Some clients have it and i find it very helpful, but there is so many other things i luv about mirc so if I could get both of them I would be a happy man. Writing a script by my self agghh... it could be done, but it would be nice if there was something out there so I did not have to do anything by my self, you know lazyness...
Posted By: RusselB Re: overview over all channels? - 18/03/11 10:59 PM
There is the Scripting and Pop-Ups forum, though, technically, it's supposed to be a forum for helping with a script you have at least tried to write.

There's also a Snippet Request forum on Hawkee where you can request the snippet and have it done for you completely. Sometimes those requests take a few days, or longer, depending on the complexity of the request and the availability of a helper's time.
Posted By: hixxy Re: overview over all channels? - 18/03/11 11:21 PM
Code:
alias -l messagestyle { 
  if ($1 == text) { return $+(<,$chr(3),$cnick($nick).colour,$iif($chan && $left($nick($chan,$nick).pnick,1) isin $prefix,$v1),$nick,$chr(3),$colour(normal text),>) }
  elseif ($1 == action) { return * $nick }
  elseif ($1 == notice) { return $+(-,$chr(3),$cnick($nick).colour,$iif($chan && $left($nick($chan,$nick).pnick,1) isin $prefix,$v1),$nick,$chr(3),$colour(notice text),-) }
}
alias singlechannel { window $iif($window(@singlechannel),-a) @singlechannel }

on *:text:*:#:{
  if ($window(@singlechannel)) { echo -bcfilmrt "normal text" @singlechannel $chan -> $messagestyle($event) $1- }
}
on *:action:*:#:{
  if ($window(@singlechannel)) { echo -bcfilmrt "action text" @singlechannel $chan -> $messagestyle($event) $1- }
}
on *:notice:*:#:{
  if ($window(@singlechannel)) { echo -bcfilmrt "notice text" @singlechannel $chan -> $messagestyle($event) $1- }
}


Just type /singlechannel
Posted By: wrigsted Re: overview over all channels? - 19/03/11 02:16 PM
Very,very nice, thanks!! It was something like this i was hoping for blush
And also a thanks to the rest of you guys.
Posted By: wrigsted Re: overview over all channels? - 19/03/11 08:43 PM
hixxy:
This scrpit is so butiful, and well written it's almost make me cry. I don't know what more to say about this masterpiece of of scripting!
Posted By: hixxy Re: overview over all channels? - 20/03/11 12:45 AM
Haha no problem! smile
Posted By: Tomao Re: overview over all channels? - 20/03/11 06:01 AM
Could beautify it some more:
Code:
on *:text:*:#: sc
on *:action:*:#: sc
on *:notice:*:#: sc
alias -l sc {
  if ($window(@singlechannel)) { 
   echo -bcfilmrt $event @singlechannel $chan -> $messagestyle($event) $1- 
  }
}
Posted By: wrigsted Re: overview over all channels? - 21/03/11 07:22 AM
Thanks Tomao, but what would this do? I try to put it in the script but can't see any difference and don't have the ability to decipher what it means blush
One thing that would be nice, if, when I write in a channel window that it would come up in /singlechannel to. I really don't remember if it did that in the start when I first ran it?
But is a great lurker script, I can run when I am doing something else and still know what happen on my favourite channels wink
Posted By: hixxy Re: overview over all channels? - 21/03/11 07:56 AM
Code:
on *:input:#:{
  if (!$inpaste) && ((!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter)) {
    if ($window(@singlechannel)) { echo -bcfilmrt "own text" @singlechannel $+(<,$chr(3),$cnick($me).colour,$iif($left($nick($chan,$me).pnick,1) isin $prefix,$v1),$me,$chr(3),$colour(own text),>) $1- }
  }
}
Posted By: Tomao Re: overview over all channels? - 21/03/11 05:02 PM
Originally Posted By: wrigsted
Thanks Tomao, but what would this do? I try to put it in the script but can't see any difference and don't have the ability to decipher what it means blush
There's nothing to decipher really. What I did was basically consolidate hixxy's script and make it lighter with less bytes is all. I actually forgot to include the $1- in each event. :p I see hixxy has added the input event as per your request, and this is yet another consolidation:
Code:
on *:input:#: sc $1-
on *:text:*:#: sc $1-
on *:action:*:#: sc $1-
on *:notice:*:#: sc $1-
alias -l sc {
  if ($window(@singlechannel)) { 
    if ($istok(text action notice,$event,32)) {
      echo -bcfilmrt $event @singlechannel $chan -> $messagestyle($event) $1- 
      halt
    }
    if (!$inpaste) && ((!$istok(/ $readini($mircini,text,commandchar),$left($1,1),32)) || ($ctrlenter)) {
    echo -bcfilmrt own @singlechannel $chan -> $+(<,$chr(3),$cnick($me).colour,$iif($left($nick($chan,$me).pnick,1) isin $prefix,$v1),$me,$chr(3),$colour(own),>) $1- }
  }
}
alias -l messagestyle { 
  if ($1 == action) { return * $nick }
  elseif ($1 == text) { 
    return $+(<,$chr(3),$cnick($nick).colour,$iif($chan && $left($nick($chan,$nick).pnick,1) isin $prefix,$v1),$nick,$chr(3),$colour(normal),>) 
  }
  elseif ($1 == notice) { 
    return $+(-,$chr(3),$cnick($nick).colour,$iif($chan && $left($nick($chan,$nick).pnick,1) isin $prefix,$v1),$nick,$chr(3),$colour(notice),-) 
  }
}
alias singlechannel { window $iif($window(@singlechannel),-a) @singlechannel }
© mIRC Discussion Forums