mIRC Home    About    Download    Register    News    Help

Print Thread
#41624 13/08/03 08:09 PM
Joined: Jul 2003
Posts: 7
K
kabix Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
K
Joined: Jul 2003
Posts: 7
How to cycle through all opened windows and make minimize them (/window -m windowname)? I need to minimize channels, queues, sends, receive and so on? Is there a way to cycle through them?

thanks

kabix

#41625 13/08/03 08:15 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
/help Key Combinations

Control+N
Cycles through channel windows.

Control+Q
Cycles through query windows.

#41626 13/08/03 08:21 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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
#41627 13/08/03 08:23 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Showoff. :tongue:

#41628 13/08/03 08:30 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
lol grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#41629 13/08/03 08:40 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Hey! You're just jealous because I type faster than you! :P

This is (obviously) an old script I wrote a while ago...someone might be able to learn from/use it. *shrug*


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#41630 13/08/03 08:49 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Jealous? Maybe. smile

Edited for spelling errors.

Last edited by SladeKraven; 13/08/03 09:02 PM.
#41631 13/08/03 08:55 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
hmm, you didnt say how long time it took you to code it.. so maybe im faster wink wink grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
#41632 13/08/03 09:30 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
I have no idea. Probably 20-30 minutes, cradle-to-grave.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#41633 14/08/03 07:52 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You can cycle through all windows (of any type) with $window(*,N)


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com

Link Copied to Clipboard