Xerox -05W Printer User Manual


 
12-26
Creating A Script File
<channel> is the name of an integer variable (see var) into which an ID will be
placed reflecting the particular channel for the initiated DDE link. A
maximum of four channels may be used at any one time, each must
have a different variable name. This may be omitted if only one chan-
nel is to be used (i.e. only one DDE conversation is to be initiated),
and the channel ID will be set to 1.
<ddelist> is the name of a string variable into which a list of topics found for
the DDE partner will be placed. This may be omitted, but if included
it must be used in conjunction with <channel>.
The system flag will be set to TRUE and the errno (error number) variable will be
set to 0 if the command is successful, or FALSE and an error number other than 0 if
the command failed.
Up to four DDE conversations will be permitted if a <channel> variable is specified.
When a DDE connection is successfully made, the <channel> variable will contain
the ID of the conversation. If the connection was unsuccessful, <channel> will have
a value of 0 or -#, where # indicates the number of multiple sessions that would have
been started.
If <ddelist> is specified and the <channel> variable is -#, then <ddelist> will contain
a list of strings relating to each individual session that would have been started. Each
entry in the list will be separated by a comma, as follows:
szAppName1|szTopic1,szAppName2|szTopic2
You can list the available topics for an application by specifying an empty string for
the <topic> entry and including the <channel> and <ddelist> variable names. The
following example will cause a list of available topics for the application Excel to be
stored in the variable ExcelTopics:
dde initiate "Excel" "" channel ExcelTopics
DDE POKE
Syntax: DDE POKE <variable> <item> [<channel>]
Sends a poke to the DDE partner, placing data contained in a variable into a specified
item, where
<variable> is the name of the variable which contains the information to be
placed.
<item> is a string containing the name of the item where the information is to
be placed.
<channel> is the name of the integer variable identifying the particular channel
for the DDE link if specified by the dde initiate command, otherwise
this is omitted.