CpExtra Preference Variables

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

  1. 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.
  2. On the menu bar, go to Project > Variables... this opens the Variables dialog.
  3. Click Add New
  4. 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)
  5. 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.
  6. 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.

Click the links above to see specific instructions on how to use those variables.

IF YOU LIKE WHAT YOU'VE READ ABOVE, THERE'S PLENTY MORE!

Join more than 2500 other Adobe Captivate users just like yourself and receive regular troubleshooting tips, illustrated tutorials, technical information, and creative solutions to real-world e-learning development issues. (See an example here.) Click the button below to join our community.  It's completely FREE!