mIRC Home    About    Download    Register    News    Help

Print Thread
#40516 08/08/03 03:06 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
i am using serveral commands in my script, msg $active describe $acrive ect and so on
it wants to do all these commands on the first open network, instead of the one im on now...is there a way to fix that?

#40517 08/08/03 03:38 PM
T
theRat
theRat
T
could you give us a little piece of code how to reproduce that?

#40518 08/08/03 03:54 PM
R
root
root
R
I think he just means that if he has multiple connections open, he wants to know how to send one command to a network and not to the others, while he $active being from on a diffrent network.

#40519 08/08/03 03:59 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
like this;
if i send this command from an sclick on a dialog;
/describe $active blkjnflddd
and $active is on [network 2], it will send the command to [network 1]
network 1 being the first opened network/status window

#40520 08/08/03 04:14 PM
C
CyBot
CyBot
C
I think you may need to use $scon(0) and /scid .
I think thats what you mean, if so try:
/scid 2 //echo -s Status Screen For Server 2
You wanted that right?

#40521 08/08/03 04:21 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
im sure i can fit it some how, but
i //echo-a $scon(0) and got 2
then i did the /scon 2 thing and got
* No such connection id: 2

#40522 08/08/03 04:25 PM
P
pheonix
pheonix
P
$scon(0) returns the amount of connections open, not the connection id's.

#40523 08/08/03 04:28 PM
Joined: Dec 2002
Posts: 127
F
Vogon poet
Offline
Vogon poet
F
Joined: Dec 2002
Posts: 127
what you're looking for is $scid().. maybe $activecid

#40524 08/08/03 04:30 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
weird
the first network open is 1, the next is 5?

#40525 08/08/03 05:31 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
ok i got it, thank you smile


Link Copied to Clipboard