(Created $scon identifier - mIRC) |
|||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | '''$scon''' allows you to get the server id for a connection, or specific details regarding the properties of a certain 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: | + | <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 == | ||
Line 14: | Line 15: | ||
<source lang="mIRC">//echo -a $scon(0)</source> | <source lang="mIRC">//echo -a $scon(0)</source> | ||
− | '''Use the optional identifier-supported property to echo the server name of connection | + | '''Use the optional identifier-supported property to echo the server name of connection number 1 to the active window''' |
<source lang="mIRC">//echo -a $scon(1).server</source> | <source lang="mIRC">//echo -a $scon(1).server</source> | ||
− | '''Use the optional identifier-supported property to echo the network name of connection | + | '''Use the optional identifier-supported property to echo the network name of connection number 4 to the active window''' |
− | <source lang="mIRC">//echo -a $scon( | + | <source lang="mIRC">//echo -a $scon(4).network</source> |
== Compatibility == | == Compatibility == | ||
− | + | {{mIRC compatibility|6.0}} | |
− | |||
− | |||
== See Also == | == See Also == | ||
− | + | * {{mIRC|$activecid}} | |
− | + | * {{mIRC|$cid}} | |
− | + | * {{mIRC|$lactivecid}} | |
− | + | * {{mIRC|$scid}} | |
− | + | * {{mIRC|/scid}} | |
− | + | {{mIRC identifier list}} | |
− | |||
− | [[ | + | [[Category:mIRC identifiers|scon]] |
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.