Animating an Object to Trigger a System Command
You can animate an object so that when it is selected, it causes a Windows system command to be executed. Common uses for this type of animation include:
- Configuring a Mimic object to execute a print command
- Configuring a Mimic object to run a program, such as Google Chrome
(Although both of these can also be set up by using the Pick Action Wizard, see Creating a System Command Pick Action).
When animating an object to trigger a system command, you need to set the PickType to 16 (for System command). You also need to define the system command (or the location of a System Command database item) in the PickParam expression.
Example:
A Mimic object that is configured to run Google Chrome when selected could have these animations:
- PickType—16
- PickParam—'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'
The same functionality could be provided by configuring a System Command item to have the Command: 'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'. Next, you would configure a Mimic object to use the following animations:
- PickType—16
- PickParam—"<location of System Command item>.cmd"
Where <location of System Command item> is a reference to the System Command item. The PickParam has to reference the System Command item’s cmd property.
Remember that if your system uses Original WebX clients, those clients have to use the 32-bit version of Internet Explorer. Other browsers are not supported.