Specifications

OLE reference
158
Glink: API reference manual Gallagher & Robertson
The Pattern method
Enables the OnPattern event
Pattern ( PatternId, Pattern )
PatternId: Long PatternId supplied with OnPattern event
Pattern: String Pattern to receive from the host
Return value: Boolean TRUE if successful, otherwise FALSE
This method enables the OnPattern event. The PatternId is passed as a parameter
to the OnPattern event callback function. Up to twenty different 'patterns' may be
set using this command using the PatternId, numbered from 1 to 20. Glink scans
the data received from the host for any patterns that may be set.
VBA Example:
Gl.Pattern(1, "Logon:")
Private Sub Gl_OnPattern(ByVal PatternId As Long)
If PatternId = 1 Then
Gl.Pattern(1, "")
Text1.Text = "Got the logon screen"
DoMyLogon
End If
End Sub
Using an empty Pattern string cancels the event. Supplying ZERO as the
PatternId will cancel all Pattern events.
The Quit method
Stops the emulator
Quit ( )
Return value: none
This method tells Glink to terminate. The Glink object will no longer be valid
after this call.