mIRC Home    About    Download    Register    News    Help

Print Thread
#11044 14/02/03 04:39 PM
Joined: Jan 2003
Posts: 44
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 44
how can I make the command /clearall to clear all windows exept 1 for example @Window
??


Regards, ThE_mASk.
#11045 14/02/03 05:44 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
I'm not sure, but i don't think you can do that with /clearall.
I might come up with some code for you...
Bye

#11046 14/02/03 06:12 PM
Joined: Feb 2003
Posts: 76
G
Babel fish
Offline
Babel fish
G
Joined: Feb 2003
Posts: 76
Well here I am again. These while loops might help you out a bit /clearing...

var %x, %y, %z, %a
;/clearing all channels...
set %x 1
while ($chan(%x)) {
set %y $ifmatch
clear %y }
inc %x
;/clearing all queries...
set %x 1
while ($query(%x)) {
set %z $ifmatch
clear %z }
inc %x


Hope i helped you out a bit. smile

#11047 15/02/03 12:30 PM
Joined: Jan 2003
Posts: 44
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2003
Posts: 44
Well I tried the script and it got into the loop and it didn't went out confused and I had to use Alt+Ctrl+Del to stop the script...


Regards, ThE_mASk.
#11048 15/02/03 05:52 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
Put your inc %x INSIDE the loop, not outside.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#11049 15/02/03 06:19 PM
Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Using $window(*,N) only one loop is needed to go through all of them (thanks qwerty- for pointing that out).
Code:

var %i = 1
while $window(*,%i) {
  if $ifmatch != @Window { clear $+(",$ifmatch,") }
  inc %i
}

This one "clears" any open window, but that doesn't affect DCC send, URL list or other special ones.


Link Copied to Clipboard