Specifications
OLE reference
152
Glink: API reference manual Gallagher & Robertson
VBA Example:
Dim GL As Object
Dim Cont As Boolean
Dim S As String
Set GL = CreateObject("Glink.Auto")
GL.LoadConfig ("UNIX.glinkconfig")
GL.Connect("")
Cont = True
Do
S = GL.Receive(100, String(1, Chr(13)), 100, True)
If S > "" Then
If InStrB(S, "ogin:") > 0 Then
GL.Transmit ("name")
End If
If InStrB(S, "ssword") > 0 Then
GL.Transmit ("pass")
Cont = False
End If
End If
Loop Until Cont = False
GL.Visible = True
The Screen interface property
Screen: IAutoScreen Screen information interface
The Screen property returns an interface to the Screen allowing you to read and
update the fields on the screen. It also allows you to read the status line. See the
Screen interface section for more information.
The Top property
Top: Integer Top window co-ordinate
This property can be used to get or set the top co-ordinate of the top-left corner
of the main Glink window. This value is in pixels.
VBA Example:
Dim GL As Object
Set GL = CreateObject ("Glink.Auto")
GL.Visible = True
GL.Top = 0