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.1.ini

Mr. BS, 11/05/2015 07:10 PM

 
1
; http://dev.adiirc.com/boards/5/topics/475
2
; v0.1.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
    elseif (!$istok(message highlight,$window(*,%w).sbcolor,32)) && ($1 != $window(*,%w).wid && %type) window -w0 $window(*,%w)
25
    dec %w
26
  }
27
}
28

    
29
; Unhidden on activity
30
on *:Text:*:#,?: window -w3 $iif(#,#,$nick)
31

    
32
menu channel {
33
  -
34
  Idle Windows
35
  .Hide no new message windows: hidle
36
  .Force unhidden all: hidle un
37
}
(2-2/11)