Added in 1.9.2
$activecid
Returns the server connection id for the current active window.