mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 3
Z
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Apr 2004
Posts: 3
I have to connect through several connections and I want a command that would close some of them (it does disconnects, but Status window of it leaves). How do I do it? :}

Joined: Dec 2002
Posts: 102
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 102
You can use the various multiserver identifiers to try and figure out which windows to close depending on your reason for selecting them (by nickname, server, active connection etc. $scon(N).nick/$scon(N).server or whatever. From there you can /scon to that connection and use /disconnect (if necessary) and /window -c "Status Window"


-
MIMP
Joined: Apr 2004
Posts: 3
Z
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Apr 2004
Posts: 3
Already tried that - doesn't work frown

Joined: Dec 2002
Posts: 102
M
Vogon poet
Offline
Vogon poet
M
Joined: Dec 2002
Posts: 102
Can you post your code?


-
MIMP
Joined: Apr 2004
Posts: 3
Z
Self-satisified door
OP Offline
Self-satisified door
Z
Joined: Apr 2004
Posts: 3
yeah it goes something like that (well the point is the same as here):

/command {
var %i = 1
while (%i <= %n) {
set %nick $read(nick.txt)
server -mfoc irc.data.lt 6667 -i %nick Nick2 my@email.com Name
inc %i
}
}

so then I get %n nicks on this server and let's pretend I want to close them all but the first one with one simple /alone command blush How do I do it? confused

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
alias CloseConnection {
  • .raw JOIN 0 | ; Close channel windows
    .raw QUIT | ; Close the connection
    close -@ | ; Close custom windows
    close -c | ; Close chat windows
    close -f | ; Close fserve windows
    close -g | ; Close get windows
    close -i | ; Close inactive DCC windows
    close -m | ; Close message/query windows
    close -s | ; Close send windows
    window -c "Status Window" | ; Close the status window
}

alias CloseAllExceptFirstConnection {
  • if ($scid(1).cid != $cid) CloseConnection
}

If you want to close all your connected server connections and windows:
/scon -at1 CloseConnection

If you want to close all your connected server connections and windows except the first connection:
/scon -at1 CloseAllExceptFirstConnection


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Instead of seperate /close commands for each type of window, you can use a single /close with all the switches:

/close -cfgims@

Last edited by Hammer; 05/04/04 12:43 AM.

/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i think he made it like that so he could ;comment it wink


New username: hixxy

Link Copied to Clipboard