mIRC Homepage
Posted By: qwerty1 Message to another network - 28/03/20 11:48 AM
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.
Posted By: Wims Re: Message to another network - 28/03/20 01:33 PM
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
© mIRC Discussion Forums