Tools Menu Configuration

The Tools Menu can be configured by as desired by using the "Tools.xml" file contained in the Movicon installation folder to customize the  Tool menu list. These tools can be Movicon add-ons and/or simple external executables.

The list of tools available on the menu is managed by using a Windows registry key. When Movicon starts up, it checks to see whether the tool list is already present in the Windows registry keys or not. If these keys have not yet been configured, Movicon will read the "Tools.xml" file and then compile the Windows registry keys with the attributes defined in this file. After this has been done, this file will no longer be read unless to remove registry keys.  When Movicon is started up with the "CTRL" key pressed down, the registry keys will reset and the "Tools.xml" file will be read again.

 

Once you have made modifications to the "Tools.xml" file, you will need to restart Movicon by keeping the "CTRL" key pressed down to activate them.

 

Menu items can also be added to the Tools menu by using the menu's "Customize" command. In this case, modifications for adding or deleting applications from the menu are done directly in the Windows registry keys. This means that any resets to these keys due to restarting Movicon with the "CTRL" key pressed down, may cause the "Tools.xml" file to lose settings which were done using the "Customize" command while being loaded.

 

The "Tools.xml" file must be in this structure:

 

<?xml version="1.0" encoding="utf-8"?>

<ToolList>

<Tool Label="Servizio Upload/Download" Arguments="" InitialDirectory="" Command="TCPUploadServer.exe" />

<Tool Label="Alarm Dispatcher" Arguments="" InitialDirectory="" Command="Dispatcher.exe" />

<Tool Label="Tag Alarms Generator" Arguments="" InitialDirectory="" Command="AlarmGen.exe" />

<Tool Label="Csv Tag Importer-Exporter" Arguments="" InitialDirectory="" Command="CSVTagIE.exe" />

<Tool Label="Notepad" Arguments="" InitialDirectory="" Command="Notepad.exe" />

<Tool Label="Paint" Arguments="" InitialDirectory="" Command="MsPaint.exe" />

<Tool Label="Windows Explorer" Arguments="" InitialDirectory="" Command="Explorer.exe" />

</ToolList>

 

where the attributes have these following meanings:

 

Label = name of application to appear on menu

Arguments = parameters to pass to the application in the command line

InitialDirectory = initial folder in which to execute the application search

Command = name of the application's executable file

 

When a command is executed from the Tools menu, without specifying the "InitialDirectory" attribute, Movicon will set the current Windows folder (even if this installation path has been deleted from the Windows "PATH" environment variable). This will always allow the tool corresponding to Movicon to be executed, even when other products or add-ons, which install tools with the same name, are present. If the tool to be executed is not present in the Movicon installation folder, it will be searched for in the folder defined in the Windows "PATH" environment variable folder.

 

 

See Also