Cells(i,1) = oScreen.getstring (4,16,7)
cells(i,2) = oScreen.getstring (4,25,8)
Sub ConnectToAttachmateStuff()
Dim oSys As Object
Dim oSess As Object
Dim oScreen As Object
Set oSys = CreateObject("Extra.System")
If oSys Is Nothing Then
MsgBox ("Could not create Extra.System...is E!PC installed on this machine?")
Exit Sub
End If
'GET ACCESS TO THE CURRENTLY ACTIVE SESSION...
Set oSess = oSys.ActiveSession
If oSess Is Nothing Then
MsgBox ("No session available...stopping macro playback.")
Exit Sub
End If
Set oScreen = oSess.screen
'display the first 40 characters on line 1 after character 19 in a message box
MsgBox (oScreen.getstring(1, 20, 40))
End Sub
Sub ConnectToAttachmateStuff()
Dim oSys As ExtraSystem
Dim oSess As ExtraSession
Dim oScreen As ExtraScreen
Set oSys = CreateObject("Extra.System")
If oSys Is Nothing Then
MsgBox ("Could not create Extra.System...is E!PC installed on this machine?")
Exit Sub
End If
'GET ACCESS TO THE CURRENTLY ACTIVE SESSION...
Set oSess = oSys.ActiveSession
If oSess Is Nothing Then
MsgBox ("No session available...stopping macro playback.")
Exit Sub
End If
Set oScreen = oSess.screen
'display the first 40 characters on line 1 after character 19 in a message box
MsgBox (oScreen.getstring(1, 20, 40))
End Sub