OmahaNebraska
Programmer
This thread 1-893756 show me how to open a session, but when I tried, it doesn't work.
Private Sub Command1_Click()
Dim Sessions As ExtraSessions
Dim session As ExtraSession
Dim strPath As String
Dim extraConn As ExtraConnectivity
Dim sysSession As New ExtraSystem
Dim screenHost As ExtraScreen
Dim waitobj As Object
Dim waitforKeys$
Dim wait1 As Object
Dim strPswrd As String
Dim strAccount As String
Set sysSession = CreateObject("Extra.system")
Set Sessions = sysSession.Sessions
Set session = Sessions.Open("C:\Program Files\Attachmate\Sessions\Apollo.ADP")
Set screenHost = session.Screen
DoEvents
session.WindowState = xNORMAL
DoEvents
End Sub
When I open, it has the error "Object Variable or with block variable not set" at this line:
Set session = Sessions.Open........
But when I open the session first then it works fine.
How do we use VB6 to open Attachmate and one of its sessions? (AccMgr32.exe).
Thanks,
Pal.
Private Sub Command1_Click()
Dim Sessions As ExtraSessions
Dim session As ExtraSession
Dim strPath As String
Dim extraConn As ExtraConnectivity
Dim sysSession As New ExtraSystem
Dim screenHost As ExtraScreen
Dim waitobj As Object
Dim waitforKeys$
Dim wait1 As Object
Dim strPswrd As String
Dim strAccount As String
Set sysSession = CreateObject("Extra.system")
Set Sessions = sysSession.Sessions
Set session = Sessions.Open("C:\Program Files\Attachmate\Sessions\Apollo.ADP")
Set screenHost = session.Screen
DoEvents
session.WindowState = xNORMAL
DoEvents
End Sub
When I open, it has the error "Object Variable or with block variable not set" at this line:
Set session = Sessions.Open........
But when I open the session first then it works fine.
How do we use VB6 to open Attachmate and one of its sessions? (AccMgr32.exe).
Thanks,
Pal.