mIRC Home    About    Download    Register    News    Help

Print Thread
Status window #197262 01/04/08 12:26 AM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Lately this status window has statred to appear. Why? And how to get rid of it.

Yes, I can right click and press close. But I don't want it ever to come back.



Thansk!

Re: Status window [Re: Deep3D] #197265 01/04/08 12:53 AM
Joined: Dec 2002
Posts: 2,022
R
RoCk Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,022

If you have a script to auto-connect to multiple servers on start, remove the -m switch from the first /server command.

Re: Status window [Re: RoCk] #197276 01/04/08 08:03 AM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Thanks!

Server 1 in my auto connect is disabled. So then Server 2 is connected with server -m.

How would you set this up?:

Code:
multi.server {
  if %multi.server.1 != $null && %multi.server.1.enable == on { server %multi.server.1 }
  if %multi.server.2 != $null && %multi.server.2.enable == on { server -m %multi.server.2 }
  if %multi.server.3 != $null && %multi.server.3.enable == on { server -m %multi.server.3 }
  if %multi.server.4 != $null && %multi.server.4.enable == on { server -m %multi.server.4 }
  if %multi.server.5 != $null && %multi.server.5.enable == on { server -m %multi.server.5 }
}

Re: Status window [Re: Deep3D] #197278 01/04/08 08:26 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Here's my suggestion
Code:
multi.server {
  var %a = 1, %b = 5
  while %a <= %b {
    var %s1 = $($+(%,multi.server.,%a,.enable),2), %s2 = $($+(%,multi.server.,%a),2)
    server $iif( %s1 == on && %multi.server.conn && %s2,-m $v1,$iif(%s1 == on && %s2,$v1))
    inc %a
  }
}


Since you're stating that Server 1 is disabled, then you want Server 2 to connect without the -m, not with it.

You want the first server that you connect to, to have the connection without the -m, and each connection after that with it.

Re: Status window [Re: RusselB] #197280 01/04/08 08:45 AM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Thats correct, thank you! smile

Re: Status window [Re: RusselB] #197281 01/04/08 09:34 AM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
There is some kind of error in the code.

It tyres to connect to servers, but not with -m.

Re: Status window [Re: Deep3D] #197312 01/04/08 10:40 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Sorry about that.. try this re-write
Code:
multi.server {
  var %a = 1, %b = 5
  while %a <= %b {
    var %s1 = $($+(%,multi.server.,%a,.enable),2), %s2 = $($+(%,multi.server.,%a),2)
    server $iif(%s1 == on && %multi.server.conn && %s2,-m $v1,$iif(%s1 == on && %s2,$v1))
    if %s1 == on && %s2 {      inc %multi.server.conn    }
    inc %a
  }
}


Forgot to increment the variable that tracks the number of connections made.

Re: Status window [Re: RusselB] #197333 02/04/08 12:03 PM
Joined: Dec 2002
Posts: 477
Deep3D Offline OP
Fjord artisan
OP Offline
Fjord artisan
Joined: Dec 2002
Posts: 477
Thank you! It works like a dream. smile

Can you please tell me how it works? So I can learn something from this. I would appreciate that.

Edit: I tryed to have Server 1,2 and 3 disabled. And 4 and 5 enabled.

And it connects to server 3,4 and 5.

Edit 2: I made a loooong script that works for now.

Code:
multi.server {
  if %multi.server.1 != $null && %multi.server.1.enable == on { server %multi.server.1 }
  if %multi.server.2 != $null && %multi.server.2.enable == on { if %multi.server.1.enable == off server %multi.server.2 | else server -m %multi.server.2 }
  if %multi.server.3 != $null && %multi.server.3.enable == on { if %multi.server.1.enable == off && %multi.server.2.enable == off server %multi.server.3 | else server -m %multi.server.3 }
  if %multi.server.4 != $null && %multi.server.4.enable == on { if %multi.server.1.enable == off && %multi.server.2.enable == off && %multi.server.3.enable == off server %multi.server.4 | else server -m %multi.server.4 }
  if %multi.server.5 != $null && %multi.server.5.enable == on { if %multi.server.1.enable == off && %multi.server.2.enable == off && %multi.server.3.enable == off && %multi.server.4.enable == off server %multi.server.5 | else server -m %multi.server.5 }
}

Last edited by Deep3D; 02/04/08 12:25 PM.