m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{mirc title|$scon Identifier}}'''$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 {{mIRC|$scid}}, '''$scon''' works on the Nth connection, not the actual connection ID. | {{mirc title|$scon Identifier}}'''$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 {{mIRC|$scid}}, '''$scon''' works on the Nth connection, not the actual connection ID. | ||
+ | |||
== Synopsis == | == Synopsis == | ||
Line 8: | Line 9: | ||
== Properties == | == Properties == | ||
− | <span style="display: inline-block; width: 80px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, | + | <span style="display: inline-block; width: 80px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, it returns the value of that identifier evaluated on that connection. See the examples below for more details. |
== Example == | == Example == |
Latest revision as of 16:51, 11 October 2018
$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.