mIRC Homepage
Posted By: nataliad hide specific windows - 01/10/06 11:00 PM
hello

the above script hides/unhides all windows apart from queries by pressing F8

how can I make it to work only for windows named #one and #two ?

thanks!

Code:
 alias F8 {
  scon -a toggletabs %hidden
  if (%hidden == $null) set %hidden 1
  else unset %hidden
}
alias -l toggletabs {
  var %x = window $iif($0,-w,-h), %y = 1
  %x "Status Window"
  while ($chan(%y)) {
    %x $v1
    inc %y
  }
}
 
Posted By: RusselB Re: hide specific windows - 01/10/06 11:19 PM
Code:
 
alias -l toggletabs {
  var %x = window $iif($0,-w,-h), %y = 1
  %x "Status Window"
  while $istok(#one #two,$chan(%y),32) {
    %x $v1
    inc %y
  }
}
 
Posted By: nataliad Re: hide specific windows - 02/10/06 01:09 AM
thanks but it doesnt work

I have in my remote:

Code:
 alias F8 {
  scon -a toggletabs %hidden
  if (%hidden == $null) set %hidden 1
  else unset %hidden
}
alias -l toggletabs {
  var %x = window $iif($0,-w,-h), %y = 1
  %x "Status Window"
  while $istok(#one #two #three,$chan(%y),32) {
    %x $v1
    inc %y
  }
}
 
Posted By: RusselB Re: hide specific windows - 02/10/06 02:11 AM
Code:
 alias -l toggletabs {
  set %x window $iif($0,-w,-h)
  set %y 1
  %x "Status Window"
  while $chan(%y) {
    if $istok(#one #two #three,$chan(%y),32) {
      %x $chan(%y)
    }
    inc %y
  }
}
 

Tested and confirmed on 3 networks
© mIRC Discussion Forums