Desktop Command Controller
by Glynn Clements

When run, this program adds an icon to the icon bar. Clicking Select or Adjust over this icon opens a window containing a list of options, defined by the !Commands file, contained within the !DeskComm directory. Clicking Select or Adjust over an option executes a command, specified in the !Commands file. The program can be terminated by choosing the Quit option from the icon menu.

The !Commands file consists of a sequence of lines, each consisting of a title for the command, which is used in the options list, followed by a comma, then the command itself. Note that only the first 11 letters of the title are displayed in the window.

When an option is selected, the corresponding command is executed using Wimp_StartTask. This has exactly the same effect as entering the command using the Task Manager's 'New task' menu option.

If it is necessary to execute a sequence of commands from a single option, the commands should be placed in an Obey file contained within !DeskComm, and the command entered in the !Commands file should be of the form 'Obey <DeskComm$Dir>.ObeyFile'. See the Demo option in the example !Commands file for an example.
