mIRC Home    About    Download    Register    News    Help

Print Thread
#267050 28/03/20 11:48 AM
Joined: Mar 2020
Posts: 1
Q
qwerty1 Offline OP
Mostly harmless
OP Offline
Mostly harmless
Q
Joined: Mar 2020
Posts: 1
Hi,

I use several networks and I was wondering if its possible to send a message to a chan in network 1 at an event on network 2.

Joined: Jul 2006
Posts: 4,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Hello, it's possible using scon or /scid

/scon works with connection number, the first status window is connection 1, the next one 2 etc.

/scid works with connection ID, the first status window may have any ID, like 2, while the second status window may have 1

Inside your event, you can use $cid to get the current connection ID, there are no $con equivalent to get the connection number, but it can be scripted with a loop over $scid or $scon.

You need to find a way to identify your network1 via its connection id or number, and then simply use in your event, /scid <network1_id> | msg $chan ... (or /scon <network1_Nth_status window)

Watch out, /scid <id> msg $chan ... is a syntax that works, you can include a command in /scid to be executed on the given connection, but this double evaluate your parameter, so make sure to use two differents commands there for /scid (or /scon) and /msg

https://en.wikichip.org/wiki/mirc/commands/scid
https://en.wikichip.org/wiki/mirc/commands/scon


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard