From WikiChip
mirc/identifiers/$scon
< mirc‎ | identifiers
Revision as of 18:19, 23 June 2014 by Zmodem (talk | contribs)

$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