Project

General

Profile

[script] Hide all idle channels and querys (no new messag... » Hide all idle channels and querys (no new message color) v0.1.ini

Mr. BS, 11/05/2015 03:02 AM

 
1
; http://dev.adiirc.com/boards/5/topics/475
2
; v0.1 by pereba
3

    
4
; Hide all idle channels and querys (no new message color):
5
;  /hidle
6

    
7
; Force unhidden all windows if need:
8
;  /hidle un
9

    
10
; Lets hide inactive windows after xx seconds on AdiIRC startup?!
11
on *:Start: .timer 1 60 scon -a hidle
12

    
13
; Restore windows on unloading script
14
on *:Unload: hidle un
15

    
16
alias hidle scon -a dohidle $iif($istok(channel query,$window($active).type,32) && !$1,$wid,$1)
17

    
18
alias -l dohidle {
19
  var %w $window(*,0)
20
  while (%w) {
21
    var %type $istok(channel query,$window(*,%w).type,32)
22
    if ($1 == un && %type) window -w3 $window(*,%w)
23
    elseif ($window(*,%w).sbcolor != message) && ($1 != $window(*,%w).wid && %type) window -w0 $window(*,%w)
24
    dec %w
25
  }
26
}
27

    
28
; Unhidden on activity
29
on *:Text:*:#,?: window -w3 $iif(#,#,$nick)
(1-1/11)