Returns the HLLAPI Short Name (''A'',''B'',''C'',etc.) of the currently connected BlueZone session. This method may only be used after a successful Connect(), and can be used in subsequent calls that require a session name parameter.
Parameters:
None
Remarks:
Although, while not necessary, this method may improve the performance of the script, because the BZHAO will not need to enumerate child windows of the browser when attempting to auto-locate the BlueZone sessions.
Example:
Dim host, SessionName, SessionId
Sub LoginToHost
Set Host = CreateObject( "BZWhll.WhllObj" )
Host.SetBrowserWnd window.top
Host.ConnectToHost 2, 0 'zero means bzhao must auto-determine session id
Host.Connect "!" '! means bzhao must auto-determine session name
SessionName = Host.GetSessionName()
SessionId = Host.GetSessionId()
Host.addConnectionCallback 2, SessionId, "ConnectionCallback"
'additional login statements
Host.Disconnect 'break link with session when done
End Sub
Sub ConnectionCallback
Host.Connect SessionName 'connect to the same session
'additional logoff statements
Host.Disconnect
End Sub