NewSession

Launches a new BlueZone session.

Parameters
SessionTypeVal
1 – Mainframe; 2 – iSeries; 3 – VT; 6 – 6530
ConfigFileStr
Optional: Name of the profile containing the session settings. If using this parameter, the SessionTypeVal can be skipped because the session type is determined by the file extension.
LockKeyboardVal
Optional: If True, locks the user's keyboard until a call to LockKeyboard( False ) is made. This parameter can be used for Mainframe or iSeries sessions.
Returns
String containing the session's short name session identifier to be used with the Connect and/or DeleteSession methods.
Example 1
Set bzhao = CreateObject("BZWhll.WhllObj")
SessName = bzhao.NewSession( 1, "profile.zmd" )
bzhao.Connect SessName
bzhao.SendKey "logon user<Enter>"
Example 2
Set bzhao = CreateObject("BZWhll.WhllObj") bzhao.Username = "guest"
bzhao.SSHPassword = "guest"
bzhao.Hostname = "hostname"
bzhao.TelnetPort = 22
bzhao.TelnetEncryption = 3
SessName = bzhao.NewSession( 3 )
bzhao.Connect SessName
bzhao.DeleteSession SessName