From WikiChip
$scon Identifier - mIRC
< mirc‎ | identifiers

$scon allows you to get the server id for a connection, or specific details regarding the properties of a certain connection id. It is important to note that unlike $scid, $scon works on the Nth connection, not the actual connection ID.


Synopsis[edit]

$scon(N)[.property]

Parameters[edit]

NReturns the connection ID for the Nth connection. If you specify N as 0, the total number of connections is returned.

Properties[edit]

[.property]If you specify a compatible identifier here, it returns the value of that identifier evaluated on that connection. See the examples below for more details.

Example[edit]

Echo the total number of connections to the active window

//echo -a $scon(0)

Use the optional identifier-supported property to echo the server name of connection number 1 to the active window

//echo -a $scon(1).server

Use the optional identifier-supported property to echo the network name of connection number 4 to the active window

//echo -a $scon(4).network

Compatibility[edit]

Added: mIRC v6.0
Added on: 03 Feb 2002
Note: Unless otherwise stated, this was the date of original functionality.
Further enhancements may have been made in later versions.


See Also[edit]

[Expand]
v · d · e mIRC identifier list