L’interface de VDS Renaissance est disponible en plusieurs langues. La documentation officielle est maintenue en anglais afin de garantir une référence unique, cohérente et toujours à jour.
DDE
Syntax
DDE LINK, <servername>,<topicname>
DDE EXECUTE,<macro>
DDE POKE, <itemname>,<data>
DDE TERMINATE
Description
The DDE commands are used to establish and terminate a link using Windows' Dynamic Data Exchange (DDE) between a script program acting as a DDE client and another application acting as a DDE server. Note that Windows requires programs using DDE communication to have a window, so this command will generate an error unless a dialog box has been created.
The DDE LINK command is used to initiate the DDE link before any communication can take place. The DDE TERMINATE command is used to terminate the link once communication has finished.
The DDE EXECUTE command is used to send to the server application a command (or DDE macro) to be executed. The commands that are valid are dependent on the application.
The DDE POKE command is used to send data to a named item in the DDE server. Note: Many applications do not accept poked data.
The DDE TERMINATE command closes the DDE link. It is good practice to do this once DDE communication has finished.
Note: VDS can be used to create DDE Server applications using the DDESERVER dialog style. This provides a way for VDS applications to communicate with one another.
OK
Set to false if the DDE command fails.
Example
DDE LINK,Progman,Progman
if @ok()
DDE EXECUTE,[CreateGroup(%U)]
end
if @ok()
DDE EXECUTE,[ShowGroup(%U",1")]
end
if @ok()
DDE EXECUTE,[AddItem(@shortname(%D.exe)",Visual DialogScript")]
DDE EXECUTE,[AddItem(@shortname(%D.hlp)",Visual DialogScript 2 Help,winhelp.exe")]
DDE EXECUTE,[AddItem(@shortname(%D.hlp)",Visual DialogScript 2 Tutorial,winhelp.exe")]
end
if @not(@ok())
warn Setup failed to create start menu shortcuts
end
DDE TERMINATE