User`s manual

Table Of Contents
7. Explorer
280/402
_________________________________________________
Barco – Apollo – DOC-3197-2 – user's manual – Revision 08 – November 2006
7.12.1 Adding commands to the context menu
Edit the ApolloExplorer.ini file located in the Apollo Project directory in the subfolder Server Data to customize the
context menu.
A file in the Server Data subdirectory is available to all computers of the Apollo network.
This file also overwrites other files with the same name located in other Apollo Project
directories.
Follow these steps to customize the context menu:
Open the file \ApolloProject\ServerData\ApolloExplorer.ini.
The comment section of this file explains which syntax to use for a command in the context menu and
which attributes can be set.
The context menu starts a command line. This means that these commands, parameters, and their possible
values are the same as those that can be passed via the command interface; cf. Viewer command Interface
This file lists all devices supported by Apollo. The section for each device starts with the device name in
brackets.
Navigate to the section of the device with the context menu you would like to expand.
For example, if you want to give access to the command "Blanking" in the context menu of a Web Viewer,
and if the image "bluescreen.jpg" is to be displayed in the blanking mode, add the following to the end of
the entries for the Web Viewer:
"Blue" = <cmd>"%ApolloProgram%\ViewerCmd.exe" -name:$ObjectName$ /IdcImage:2 /IdcEnabled: 1
</cmd>
The context menu now features the entry "Blue."
This command is now available to all instances of the Web Viewer by clicking with the right mouse button
regardless whether one or several instances are selected in the workspace of the viewer.
Add the attribute multi to the command if this command is to apply only if all instances of the Web Viewer
are selected:
"Blue_multi" = <attrib> multi <\attri> <cmd>"%ApolloProgram%\ViewerCmd.exe" -name:$ObjectName$
/IdcImage:2 /IdcEnabled: 1 </cmd>
A command with the multi attribute is only available in the context menu with multiple
selection.
Add the attribute single to the command if this command is to apply only if exactly one instance of the
Web Viewer is selected:
"Blue_single" = <attrib> single <\attri> <cmd>"%ApolloProgram%\ViewerCmd.exe" -name:$ObjectName$
/IdcImage:2 /IdcEnabled: 1 </cmd>
A command with the single attribute is only available in the context menu with single
selection.
The multi and single attributes can also be used so execute different commands by
context entries with the same name depending on the selection.