Note: DDE commands
will only execute if WinWedge has been activated.
There are two ways to issue DDE commands to the Wedge: either by issuing
them directly
from another application's macro or programming language or you can establish
a
"Command Source DDE Link" between another application and the Wedge
and then
issue commands by entering the command in the DDE Command source location
(a cell in a
spreadsheet for example).
Software Wedge DDE Examples
Understanding DDE
[Command] Function
1.[APPEXIT] Exits WinWedge.
2.[APPMINIMIZE] Minimizes WinWedge
Window.
3.[APPNORMAL] Opens WinWedge
Window.
4.[BEEP] Causes WinWedge to Beep
once.
5.[BREAK] Issues a Serial Break signal.
6.[CLEAR] Clears all input data fields in
WinWedge Window.
7.[COPYFIELD(n)] Copies the data field
"n" into the Windows clipboard.
8.[COPYDATE] Copies the date/time display
field into the clipboard.
9.[COPYRECNUM] Copies the record number
display field into the clipboard.
10.[SUSPEND] Suspends WinWedge.
11.[RESUME1] Resumes WinWedge for
one data record.
12.[RESUME] Resumes WinWedge.
13.[RESET] Flushes all buffers and resets
WinWedge.
14.[RTS=ON] Sets the serial port RTS line
on.
15.[RTS=OFF] Sets the serial port RTS line
off.
16.[DTR=ON] Sets the serial port DTR line
on.
17.[DTR=OFF] Sets the serial port DTR line
off.
18.[TOGGLEDTR] Toggles the serial port DTR
line for 100 ms.
19.[SEND(text)] Sends the text in
parentheses out the serial port.
20.[SENDCODE(n)] Sends the character with
ASCII code "n" out the serial port.
21.[SENDDATE(format)] Sends the date or time
out the serial port using a specified Date/Time format string.
22.[SENDFILE(filename)] Sends the contents
of the specified file out the serial port.
23.[SENDOUT('text',n...)] Sends text and
control codes out the serial port. Text must be supplied as quoted strings using single
quotes and control codes must be supplied as ASCII values. Text and control codes may be
combined in any combination with individual elements separated by commas. Ex.
[SENDOUT('Test',13,10)] sends the word Test followed by a carriage return (ASCII 13) and a
line feed (ASCII 10).
24.[PUSH(button caption)] Pushes a button in
WinWedge Window. The button is specified using its caption. The specified
caption should be the same as that entered when it was originally defined including
ampersands.
25.[CONFIG(filename)] Reconfigures the
Software Wedge. "filename" specifies the configuration file to use and must
include the filename extension and the full drive and directory path if it is not in the
current directory. You may not specify a configuration that uses a different serial port
than the one currently in use.
26.[STRIPCRLF-ON] Enables / Disables
stripping carriage return - linefeeds
27.[STRIPCRLF-OFF] from data supplied
through an Output Buffer DDE Link.
28.[TIMER-ON] Enables / Disables sending of
timed automatic output
29.[TIMER-OFF] strings.
30.[TIMERINTERVAL=n] Changes the timing
interval (ms) for timed automatic output strings to the value n (between 1 and 9,999,999).
31.[PASTE-COMMAND] Pastes a DDE Command Link
using data in the clipboard.
32.[REFRESH-COMMAND] Refreshes the last DDE
Command Link defined.
33.[TERMINATE-COMMAND] Terminates any active
DDE Command Link .
34.[PASTE-BUFFER] Pastes an Output Buffer
Link using data in the clipboard.
35.[REFRESH-BUFFER] Refreshes the last
Output Buffer DDE Link defined.
36.[TERMINATE-BUFFER] Terminates any active
Output Buffer DDE Link.
Note: All DDE commands must be enclosed in
square brackets.
When sending DDE commands to the Wedge from another program, use the DDE Application Name
"WinWedge" and the DDE Topic "COMn" where "n" is the number
of the serial port that WinWedge is installed for. A DDE Item is not required
when sending DDE commands to the Wedge.
Note: WinWedge does not have to be in "DDE Server
Mode" in order to accept and process DDE commands. The Wedge will still execute any
DDE commands sent to it even if it is in "Send Keystrokes Mode" or "Log To
Disk Mode".
|