Associates an instance of the BZHAO with a browser window that has a BlueZone display session embedded. When using the Sx Object Tag parameter with embedded sessions, the SetBrowserWnd() method must 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.
Set bzhao = CreateObject( "BZWhll.WhllObj" ) bzhao.SetBrowserWnd window.top bzhao.ConnectToHost 2, 0 bzhao.Connect "!" bzhao.ReadScreen Buf, 1920, 1, 1 bzhao.Disconnect bzhao.DisconnectFromHost 2, 0