mIRC Home    About    Download    Register    News    Help

Print Thread
#160943 01/10/06 11:00 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
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
  }
}
 

#160944 01/10/06 11:19 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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
  }
}
 

#160945 02/10/06 01:09 AM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
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
  }
}
 

#160946 02/10/06 02:11 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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


Link Copied to Clipboard