This topic explains how to use CpExtra preference variables to customize how CpExtra and Captivate work in Captivate HTML5 output.
How To Create A Preference Variable
- Identify the preference variable you wish to create. Each preference variable is tied to only one name, you'll need to know that name of the command variable before you can create it.
- On the menu bar, go to Project > Variables... this opens the Variables dialog.
- Click Add New
- In the Name field, type the variable's name. The variable name is case sensitive. (Note: If you want the preference variable to sort to the top of the variable's list, then you can put an underscore in front of its name. _xprefDoubleClickDelay will work exactly the same as xprefDoubleClickDelay)
- In the Value field give the variable an initial value. For most variables this will just be whether you what this feature on or off. You can set it to yes/no or true/false, but best practice is to set it to 1/0 because you can then use Captivate's Toggle action to turn the preference on or off.
- Click Save. The command variable has successfully been created.
Preference variables should never be used to save a value. They should only ever be used to perform actions.
Once a preference variable has been set, it's unlikely that you'll want to alter it at a later point. However, if for some reason you do want to change a preference halfway through the movie you can do so by changing the variable's value. CpExtra will shift its behavior to match.
What Can Preference Variables Do?
Currently they break down into the following categories.
- Changing CpExtra behavior
- Changing the behavior of text entry boxes
- Changing the behavior of the playbar
Click the links above to see specific instructions on how to use those variables.