Cycle Channels

By ReQueST on Sep 21, 2005

Its easy to use when you have highlights enabled.

This means many blinking channels when people need you.


This snippet simply cycles trough all channels, so it unhighlights them.

Usage:

/cycle [-s #channel]
The option -s #channel makes the cycle end in the channel (#channel).

alias cycle {
  set %c.ticks $ticks
  var %a = 1, %b = $comchan($me,0)
  while (%a <= %b) {
    window -a $comchan($me,%a) 
    if ($1 == -s && %a == %b && $me ison $2) { window -a $2 | echo -agt * Cycle completed in: $bytes($calc($ticks - %c.ticks),b) ms. | unset %c.ticks }
    inc %a 1
  }
}

Comments

Sign in to comment.
xDaeMoN   -  Sep 21, 2005

You can just make the variable %c.ticks local instead of making it global so you don\'t have to unset it.

So, this snippet makes it look like that you\'re cycling the channels but your not because you\'re just making the windows active.

 Respond  
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.