SwitchModules 1.0

By Tom Peiffer

Freeware 19 Aug 2004

In category

Components > System > Apps Communications

Description

Two components enabling interprocess messaging in a simple an effective way. Define Text commands that you may send from one application to another. The commands are received automatically with 2 lines of code and fire an event in the destination application. You have the option to add parameters to each command, and be able to react appropriatly in the fired event in the destination process. If a destination application isn’t launched yet, this is done automatically. If the destination application is already running, your can optionally avoid the start of a second instance. In the destination application, this makes no difference.

The package comes with 2 components:

  • TModuleSwitcher, which allows the sending of commands with parameters. The component only needs to be placed in the sender application. The actions can be automatically linked to a menuitem or a speedbutton. The icon can be extracted automatically from the destination file. Just drop a speedbuton and/or an idle menuitem and set the appropriate properties in the component.
  • TCommandReceiver, which is responsible for receiving the commands from TModuleSwitcher, identify the command and extract its parameters values to a TStringList. The component is placed on the mainform of the destination application, and activate by 2 lines of code.
Two techniques are used for receiving the commands. First is by interpreting the startup paramaters (when the destination application is first launched), of by receiving a windows message (if the application is already running and a second instance shell be avoided.

Informations

  • Status: Fully functional
  • Source: FW
  • Exe demo: included
  • Size: 26 085kB

Platforms:

  • Delphi 4
  • Delphi 5
  • Delphi 6
  • Delphi 7

Downloads