From WikiChip
Difference between revisions of "mirc/identifiers/$scon"
< mirc‎ | identifiers

(Created $scon identifier - mIRC)
 
m
Line 8: Line 8:
  
 
== Properties ==
 
== Properties ==
<span style="display: inline-block; width: 40px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, mIRC will provide you with that specific identifier property for the connection id parameter you've passed. See the examples below for more details.
+
<span style="display: inline-block; width: 80px;">'''[.property]'''</span>If you specify a compatible [[List of identifiers - mIRC|identifier]] here, mIRC will provide you with that specific identifier property for the connection id parameter you've passed. See the examples below for more details.
  
 
== Example ==
 
== Example ==

Revision as of 18:19, 23 June 2014

$scon allows you to get the server id for a connection, or specific details regarding the properties of a certain connection id.

Synopsis

$scon(N)[.property]

Parameters

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

Properties

[.property]If you specify a compatible identifier here, mIRC will provide you with that specific identifier property for the connection id parameter you've passed. See the examples below for more details.

Example

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 ID 1 to the active window

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

Use the optional identifier-supported property to echo the network name of connection ID 1 to the active window

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

Compatibility

Added: mIRC v6.0

Added On: 03/02/2002

See Also

$activecid

$cid

$lactivecid

$scid

/scid