mIRC Home    About    Download    Register    News    Help

Print Thread
#176610 12/05/07 11:34 AM
Joined: Oct 2004
Posts: 32
burek Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2004
Posts: 32
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.

Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Code:
server -m <address>
scon $scon(0)
<commands you want>
Type /help /scon to see why this works.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Oct 2004
Posts: 32
burek Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Oct 2004
Posts: 32
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


Link Copied to Clipboard