Here's a hint:
Code:

;  Toggle #channels
;
alias F2 {
  var %i = 1, %toggle.state = $iif($window($chan(1)).state == hidden,-w,-h)
  while ($chan(%i)) {
    window %toggle.state $ifmatch
    inc %i
  }
}
;  Toggle queries
;
alias F3 {
  var %i = 1, %toggle.state = $iif($window($query(1)).state == hidden,-w,-h)
  while ($query(%i)) {
    window %toggle.state $ifmatch
    inc %i
  }
}
;
alias F4 {
  ;  Toggle @Windows
  var %i = 1, %toggle.state = $iif($window(1).state == hidden,-w,-h)
  while ($window(%i)) {
    if ($window(%i).cid == $activecid) window %toggle.state $window(%i)
    inc %i
  }
}
;  Toggle DCC Chats
;
alias F5 {
  var %i = 1, %toggle.state = $iif($window($+(=,$chat(1))).state == hidden,-w,-h)
  while ($window($+(=,$chat(%i)))) {
    window %toggle.state $ifmatch
    inc %i
  }
}
;  Toggle Gets
;
alias F6 {
  var %i = 1, %toggle.state = $iif($window(Get $get(1) $get(1).file).state == hidden,-w,-h)
  while ($window(Get $get(%i) $get(%i).file)) {
    window %toggle.state $+("Get $get(%i) $get(%i).file,")
    inc %i
  }
}
;  Toggle Sends
;
alias F7 {
  var %i = 1, %toggle.state = $iif($window(Send $send(1) $send(1).file).state == hidden,-w,-h)
  while ($window(Send $send(%i) $send(%i).file)) {
    window %toggle.state $+("Send $get(%i) $get(%i).file,")
    inc %i
  }
}
;  Toggle all
;
alias F8 {
  if ( ($chan(1)) && ($window($chan(1)))) {
    var %toggle.state = $iif($window($chan(1)).state == hidden,-w,-h)
  }
  elseif (($query(1) && ($window($query(1)))) {
    var %toggle.state = $iif($window($query(1)).state == hidden,-w,-h)
  }
  elseif (($query(1) && ($window(1))) {
    var %toggle.state = $iif($window(1).state == hidden,-w,-h)
  }
  elseif (($query(1) && ($window($+(=,$chat(1))))) {
    var %toggle.state = $iif($window($+(=,$chat(1))).state == hidden,-w,-h)
  }
  elseif (($query(1) && ($window(Get $get(1) $get(1).file))) {
    var %toggle.state = $iif($window(Get $get(1) $get(1).file).state == hidden,-w,-h)
  }
  elseif (($query(1) && ($window(Send $send(1) $send(1).file))) {
    var %toggle.state = $iif($window(Send $send(1) $send(1).file).state == hidden,-w,-h)
  }
  var %i = 1
  while ($chan(%i)) {
    window %toggle.state $ifmatch
    inc %i
  }
  %i = 1
  while ($query(%i)) {
    window %toggle.state $ifmatch
    inc %i
  }
  %i = 1
  while ($window(%i)) { 
    if ($window(%i).cid == $activecid) window %toggle.state $window(%i)
    inc %i 
  }
  %i = 1
  while ($window($+(=,$chat(%i)))) {
    window %toggle.state $ifmatch
    inc %i
  }
  %i = 1
  while ($window(Get $get(%i) $get(%i).file)) {
    window %toggle.state $+("Get $get(%i) $get(%i).file,")
    inc %i
  }
  %i = 1
  while ($window(Send $send(%i) $send(%i).file)) {
    window %toggle.state $+("Send $get(%i) $get(%i).file,")
    inc %i
  }
  if ($window(Links List)) {
    window %toggle.state "Links List"
  }
  if ($window(Channels List)) {
    window %toggle.state "Channels List"
  }
}

cool


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C