View Single Post
  #10  
Old 06-09-2021, 09:03 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,636
Hi Oliver,

The SessionConfiguration Object Help topic is going to be updated to clarify the expected behavior.

However, the developers did suggest one change to your script that might help.

Code:
    If (OSCCurrent.GetOption("Username") <> OSCCredential.GetOption("Username")) Or (OSCCurrent.GetOption("Password") <> OSCCredential.GetOption("Password")) Or (OSCCurrent.GetOption("Session Password Saved") <> true) Then
        crt.Session.Disconnect
        OSCCurrent.SetOption "Username", OSCCredential.GetOption("Username")
        OSCCurrent.SetOption "Password", OSCCredential.GetOption("Password")
        OSCCurrent.SetOption "Session Password Saved", true
        OSCCurrent.SetOption "Use Script File", false
        OSCCurrent.Save
        OSCCurrent.ConnectInTab
        crt.Dialog.MessageBox("We are supposedly ""connected"" now.")

        Set OSCCurrent = crt.Session.Config
        OSCCurrent.SetOption "Use Script File", true
        OSCCurrent.Save
    End If
The line in red is what you would want to add.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730