mIRC Home    About    Download    Register    News    Help

Print Thread
#75557 17/03/04 04:28 PM
Joined: Feb 2004
Posts: 21
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2004
Posts: 21
I created an alias that minimizes all the windows:

F12 {
var %i = $window(*,0)
while (%i >= 0) {
if ($count($active,$chr(32)) > 0) && ($window($active).state != minimized) window -n " $+ $active $+ "
else if ($window($active).state != minimized) window -n $active
dec %i
}
}

This works fine as long as I have only one connection. I have to press F12 twice if I have two connections. How to solve this problem?

Thanks.

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
/help /scon


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
F11 {
var %i = $window(*,0)
while (%i >= 0) {
if ($count($active,$chr(32)) > 0) && ($window($active).state != minimized) window -n " $+ $active $+ "
else if ($window($active).state != minimized) window -n $active
dec %i
}
}
F12 { scon -a f11 }


New username: hixxy
Joined: Feb 2004
Posts: 21
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2004
Posts: 21
Thank you. You were really fast smile.

I went througt the mIRC manual with /scon in my mind and came up with this myself:
Code:
 F12 {
  %yhteys = $scon(0)
  while (%yhteys > 0) {
    scon %yhteys {
      %i = $window(*,0)
      while (%i > 0) {
        if ($count($window(*,%i),$chr(32)) > 0) && ($window(*,%i).state != minimized) window -n " $+ $window(*,%i) $+ "
        else if ($window(*,%i).state != minimized) { window -n $window(*,%i) }
        dec %i
      }
    }
    dec %yhteys
  }
}

I found that tidy_trax's "scon -a" sometimes causes problems with $active identifier so dropped the idea of using $active.

Last edited by Derethil; 17/03/04 07:29 PM.

Link Copied to Clipboard