mIRC Home    About    Download    Register    News    Help

Print Thread
#145405 22/03/06 07:34 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
hello

I want to click F8 and hide all status and channel only tabs and click again to show them

how can I do that?

thanks

#145406 22/03/06 08:16 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Not sure about the channels, but for the status
Code:
 F8 {
.scon -at1 window $iif(%hidden,-w,-h) "status window"
set %hidden $iif(%hidden,$false,$true)
}
 

#145407 23/03/06 03:07 PM
Joined: Feb 2006
Posts: 546
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Feb 2006
Posts: 546
for chans and status windows:

Code:
alias f8 scon -a windows

alias windows {
  var %z = 1
  while ($chan(%z)) {
    window $iif($window($v1).state == hidden,-w,-h) [ $v1 ]
    inc %z
  }
  window $iif($window(Status Window).state == hidden,-w,-h) "Status Window"
}


what are you trying to hide? >:D


"The only excuse for making a useless script is that one admires it intensely" - Oscar Wilde
#145408 19/05/06 08:46 PM
Joined: Feb 2006
Posts: 307
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Feb 2006
Posts: 307
I have a problem with this script, switching from hide-unhide mode or vice versa, or when I close all windows in hide mode (query windows), it doesnt maximize the windows, I have to do it manually

can you suggest any solution for this please?

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
  }
}
 

Last edited by nataliad; 19/05/06 08:47 PM.

Link Copied to Clipboard