Specifications

OLE reference
154
Glink: API reference manual Gallagher & Robertson
Methods
The following methods are provided by Glink:
Method Description
Connect
Connects the communications line
Disconnect
Disconnects the communications line
Emulate
Emulates a string locally
GWConnect
Makes a connection through a gateway
LoadConfig
Changes to another configuration
Pattern
Enables OnPattern event
Quit
Stops the emulator
Receive
Waits for a defined string from the host
ScriptCommand
Executes a script command
ScriptFile
Executes a script file
Send
Sends a message to the host without a
terminator
Show
Sends a message to the terminal
ShowText
Shows a message locally, no CRLF
Transmit
Sends a message without local emula-
tion
These concentrate mostly on handling of line data, and mirror much of what you
also see in the DDE interface. Especially important here is the ability to execute
any script command or script file - given that you can do that then there isn't
much you can't do from your automation controller in that the script language is
so extensive.
Here again we can maybe get a better feel for what we are looking at by running
through a real life example. We'll do more or less the same kind of thing as in
the Automation controller client Word.basic example, but this time the file will
go in the reverse direction; and this time we'll let Word be the controller and
Glink be the server.