mIRC Homepage
Posted By: burek new connection id problem - 12/05/07 11:34 AM
Hi,

Can somebody please help me with this. I would like to do a simple task. Connect to another irc server (with new status window opened) and to execute any further commands on that connection id.

I've tried this:

Code:
server -m
scid $scid($!active.cid) echo blah

I thought the logic was: create a new connection/status window, execute the 'echo' command on that new connection id and that's it, but, obviously it doesn't work frown

Where did I go wrong? smile
Thanx in advance.
Posted By: qwerty Re: new connection id problem - 12/05/07 11:48 AM
Code:
server -m <address>
scon $scon(0)
<commands you want>
Type /help /scon to see why this works.
Posted By: burek Re: new connection id problem - 12/05/07 06:19 PM
Originally Posted By: qwerty
Code:
server -m <address>
scon $scon(0)
<commands you want>
Type /help /scon to see why this works.


you're a genius laugh
that's because scon(0) returns the number of connections, and since they start from 1 it is the last connection created smile
THANK YOU smile
© mIRC Discussion Forums