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

Mr. BS, 11/12/2015 07:54 PM

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

    
28
; Unhidden on activity
29
on *:Text:*:#,?: {
30
  var %w $iif(#,#,$nick)
31
  if (!$window(%w).tbstate) window -w3 %w
32
}
33

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