I am just starting to do multi-network scripting for the first time and I'm having a bit of trouble with it...
I want to be able to have a script send a message to a specific channel on a specific network or possibly even send one message to multiple channels (but not all channels) on multiple networks that I'm connected to.
What I was trying to do was set up a dialog where I input the message in an edit box, select a network in a list box, then add channels for that network in a second list box that I want the message to go to on that network. I can set up the dialog fine and all that, the part I'm having a problem with is telling mirc which connection the relevant channels are on.
One thing I've noticed is when I try to use the /scid or /scon commands to do this, if for example I connect to three networks and then close the second network, the third still maintains a $cid of 3, but the /scid doesn't work because it no longer sees a third connection, it only sees two...
Example:
Connection 1 = Dalnet ( $cid(1) )
Connection 2 = Efnet ( $cid(2) )
Connection 3 = Undernet ( $cid(3) )
When I close the Efnet connection (and the corresponding Status window) the Undernet connection maintains a $cid value of 3. However the /scid and /scon commands will not work with a value of 3 because they are counting the number of connections (open status windows) not going to a specific $cid value.
At least that's how it seems to be working from what I've seen...
Any help on this would be greatly appreciated...