SetBrowserWnd

Used to associate an instance of the BZHAO with a browser window that has a BlueZone display session embeded.  When using the Sx Object Tag parameter with embeded sessions, the SetBrowserWnd() method should be used after each CreateObject() call when running multiple browser instances and specifying ''!'' with Connect() and zero(0) with ConnectToHost(), addConnectionCallback(), etc. in the web page scripts.

Parameters:

window.top

Remarks:

In the following example, the BZHAO will use the window.top object to find the BlueZone session that is embeded in the same browser window that is running the script.  Note that window.top is the only valid parameter for this method.

Example:

Set Host = CreateObject( "BZWhll.WhllObj" )

Host.SetBrowserWnd window.top

Host.ConnectToHost 2, 0

Host.Connect "!"

 

Host.ReadScreen Buf, 1920, 1, 1

 

Host.Disconnect

Host.DisconnectFromHost 2, 0

 


Related Topics:

GetSessionName

GetSessionId