mIRC Homepage
Posted By: KuJaX an ON disconnect... - 10/06/04 06:11 AM
This refers to this post:
REFER--

Basically,

I want it so that when I am disconnect (out of no where... i have wireless, so it might be the reason)

That It disconnect from BOTH servers and run the command "/fin" (refer to the referred thread).

because if i have something like this:

Code:
on 1:DISCONNECT:{
  /echo I WAS DISCONNECTED at $time !
  /fin
}


then with the alias "/fin" I will have a lot of connections open, because if either of the two servers I am connected to fail, I will reconnect to both in two different server windows.

Let me know if you need any more information. Thanks a lot!
Posted By: Sleepy_Dreamerz Re: an ON disconnect... - 11/06/04 08:14 PM
dude on my script i hav some thing the same but not with the message i just hav a wav file it says DISCONNECTED [code]


on *:Disconnect: {
/splay sounds\Disconnect.wav
}
Posted By: KuJaX Re: an ON disconnect... - 14/06/04 03:17 AM
Basically,

What I want is when I get disconnected, I will DISCONNECT from ALL servers, then run the alias "fin".

Is there something like /disconnect -a (-a being something like disconnect from ALL servers)
Posted By: Online Re: an ON disconnect... - 14/06/04 03:28 AM
Yes, there's a /scon -at1 disconnect
Posted By: KuJaX Re: an ON disconnect... - 15/06/04 08:15 PM
Okay,

Well. I had this:

Code:
on *:DISCONNECT:{
  /echo DISCONNECTED
  /scon -at1 disconnect 
  /fin
}


which didn't work. Sure, when I got disconnected, I disconnected from all servers, however, I also ran the command "/fin" on all server windows also, which opened TWICE as many as I wanted. Does that make any sense? Any SPECIFIC coding that someone can give me, so that when I get disconnected, i disconnect and close all servers, except for ONE status window. From that staus window, I run the command "/fin"

Thanks.
Posted By: KuJaX Re: an ON disconnect... - 16/06/04 04:17 AM
ttt
Posted By: Online Re: an ON disconnect... - 16/06/04 04:48 AM
On *:disconnect:{ while $scon(2) { window -c "status window" } | fin }
Posted By: KuJaX Re: an ON disconnect... - 19/06/04 01:10 AM
that gives me an illegal opperation each time.
Posted By: KuJaX Re: an ON disconnect... - 19/06/04 04:05 PM
Does this not make any sense to anyone?
Posted By: KuJaX Re: an ON disconnect... - 20/06/04 07:54 PM
TTT

is this really that difficult?
© mIRC Discussion Forums