$activecid

Returns the server connection id for the current active window.