May 15, 2009
List of System Variables in Cp4
Comments
(17)
May 15, 2009
List of System Variables in Cp4
(17)

,,

Michael recently posted the exhaustive list of Captivate 4 system variables in his blog. Below is a vetted version of the same. Some more variables have been added and the default value for the quiz variables have been defined..

MovieControl variables:

Variable name

Default value

Description

cpCmndCC

0

Enable/ disable closed captioning (CC). Set value to 1 to display closed captions.

cpCmndGotoSlide

-1

Assign the slide number that the movie should move to before pausing. Index begins with zero

cpCmndMute

0

Mute the audio. set 1 to mute and 0 to un-mute

cpCmndPlaybarMoved

0

Set to 1 if the playbar has moved

cpCmndShowPlaybar

1

Provides info about the visibility of the playbar. Returns 1 if the playbar is visible, and O if not visible

cpCmndVolume

50

Control the movie’s volume. Value can range from 0 to 100

rdcmndGotoFrame

 

Assign the frame number the frame should jump to before pausing. Index begins with zero.

rdcmndGotoFrameAndResume

 

Assign to this variable the frame number to jump to and play. Index begins with zero

rdcmndNextSlide

0

Go to the next slide. Set 1 to jump to next slide

rdcmndPause

0

Pause the movie. Set 1 to pause

rdcmndPrevious

0

Go to the previous slide. Set 1 to jump to previous slide

rdcmndResume

0

Resume playing the movie. Set 1 to resume.

cpLockTOC

0

Enables/ disables user interaction on TOC

rdcmndExit 

0

Exit the movie. set 1 to exit

 

MovieInformation variables:

Variable name

Default value

Description

cpInfoCurrentSlide

 

Current slide number. Index begins with 1

cpInfoCurrentSlideLabel

 

Name of the Current Slide

cpInfoCurrentSlideType

 

Type of slide playing currently. (Slide type can be Normal Slide, Question Slide, or Random Question Slide)

cpInfoHasPlaybar

 

Information about presence of playbar. Returns 1 if visible and 0 if not

cpInfoIsStandalone

 

? No idea what this is.

cpInfoLastVisitedSlide

0

Last visited slide. Index begins with zero

rdinfoCurrentFrame

 

Current frame number. Index begins with zero

rdinfoCurrentSlide

 

Current slide number. Index begins with zero

rdinfoFPS

30

Frame rate of the movie in fps

rdinfoFrameCount

 

Total number of frames in the project

rdinfoSlideCount

 

Total number of slides in the project

cpInfoElapsedTimeMS

0

Time elapsed, in milliseconds, since the movie started playing

cpInfoPrevSlide

 

Slide Previously playing before current slide

CaptivateVersion

v4.0.0

Shows the Captivate version

rdcmndInfo

0

Display information about Adobe Captivate

 

 MovieMetaData variables:

Variable name

Default value

Description

cpInfoAuthor

 

Name of the author

cpInfoCompany

company

Name of the company

cpInfoCopyright

copyright

Copyright Info

cpInfoDescription

project description

Description of the project

cpInfoEmail

author@company.com

e-mail address

cpInfoProjectName

 

Name of the Adobe Captivate project

cpInfoWebsite

www.company.com

URL of the company website in the format www.companyaddress.com

 

SystemInformation variables:

Variable name

Default value

Description

cpInfoCurrentDate

dd

Current Date: The date as set on the user’s computer

cpInfoCurrentDateString

mm/dd/yyyy

Current Date as set on the user’s computer in the mm/dd/yyyy format

cpInfoCurrentDay

 

Day of the week as set on the user’s computer. Values range from 1-7 starting with Sunday. Sunday=1, Monday=2, and so on)

cpInfoCurrentHour

hh

Current hour: The hour set as on the user’s computer

cpInfoCurrentMinutes

mm

Current minutes: The hour set as on the user’s computer

cpInfoCurrentMonth

mm

Current month: The month as set on the user’s computer

cpInfoCurrentTime

hh:mm:ss

Current time as set on the user’s computer in the hh:mm:ss format

cpInfoCurrentYear

yyyy

Current year as set on the user’s computer

cpInfoEpochMS

 

Time elapsed, in milliseconds, since January 01, 1970

 

Quizzing variables:

Variable name

Default value

Description

cpQuizInfoAnswerChoice

Chosen Answer

cpQuizInfoAttempts

1

Number of times the quiz has been attempted

cpQuizInfoLastSlidePointScored

0

Score for last quiz slide

CpQuizInfoMaxAttemptsOnCurrentQuestion

0

Maximum attempts on the current question

cpQuizInfoNoQuestionsPerQuiz

0

Number of questions in quiz

cpQuizInfoPointsPerQuestionSlide

0

Points for the question slide

cpQuizInfoPointsscored

0

Points scored in the project

cpQuizInfoQuestionSlideTiming

0

Time limit in seconds for current question

cpQuizInfoQuestionSlideType

choice

Question slide type(Multiple-Choice/True-False/..etc)

cpQuizInfoQuizPassPercent

0

Passing percentage for the quiz

cpQuizInfoQuizPassPoints

0

Passing points for the quiz

cpQuizInfoTotalCorrectAnswers

0

Number of correct answers

cpQuizInfoTotalProjectPoints

0

Total project points

cpQuizInfoTotalQuestionsPerProject

0

Number of questions per project

cpQuizInfoTotalQuizPoints

0

Final quiz score

cpQuizInfoTotalUnansweredQuestions

0

Total number of unanswered questions

cpInfoPercentage

0

scoring in percentage

 Update: Also look at Philip’s post on Cp variables: Captivate variables gone wild

17 Comments
2012-10-25 01:12:00
2012-10-25 01:12:00

My system variables are not listed in my Captivate 4, does anyone know how to fix?

Like
()
(1)
>
Anonymous
's comment
2012-10-25 11:59:00
2012-10-25 11:59:00
>
Anonymous
's comment

Hello Kiiwii,

Can you try clearing the preferences and launching captivate 4? If it doesn’t help, please email me at viswanat@adobe.com

Thanks,
Vish

Like
()
2011-12-26 16:25:00
2011-12-26 16:25:00

Informative, i appreciate your work. All the best!

Like
()
2011-10-11 05:01:00
2011-10-11 05:01:00

Interesting and informative but can you elaborate more of these. Thanks!

Like
()
2011-03-09 06:09:08
2011-03-09 06:09:08

Hi There

Great post but I can’t see the information I need.

I need to be able to allow my user to type anything into certain fields rather than the specific data I put in during the process. They just need to type something followed by “enter” in order to go to the next entry point.

Would I do this with a variable and if so, what variable would I use?

Any help is much appreciated.

Thanks muchly

Richard

Like
()
2011-03-03 02:24:33
2011-03-03 02:24:33

interesting, thanks for tables

Like
()
2010-01-26 17:16:39
2010-01-26 17:16:39

That was a very interesting post, I enjoyed reading it. You are so right.

Like
()
2009-10-26 10:32:34
2009-10-26 10:32:34

Where are these variables anyway? If I use Loader.load to load a captivate swf… are these variables going to be on the Loader.content object? How does one access or set these variables? This post is like … HEY, there are these variables (insider info) and um… that’s all, figure it out yourself! Why the hell isn’t this in some official documentation and why are the variables names so cryptic?

Like
()
2009-08-23 08:08:32
2009-08-23 08:08:32

Are you a professional journalist? You write very well.

Like
()
2009-08-20 19:08:44
2009-08-20 19:08:44

Hmm… I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader.

Like
()
2009-08-12 10:48:39
2009-08-12 10:48:39

Interesting and informative. But will you write about this one more?

Like
()
2009-08-07 12:36:20
2009-08-07 12:36:20

Quizzing variables can be set from Action script but they will be overwritten by Cp everytime a user take a Question.

Like
()
2009-08-07 02:31:14
2009-08-07 02:31:14

Are you a professional journalist? You write very well.

Like
()
2009-08-03 13:25:14
2009-08-03 13:25:14

I liked it. So much useful material. I read with great interest.

Like
()
2009-06-16 08:28:32
2009-06-16 08:28:32

When writing Captivate matching and sequence questions, has anyone found way to exclude the lines between the two columns to pair and order? They often are “off-line” actually creating more confusion that help. Thanks for your ideas…

Like
()
2009-06-11 00:26:16
2009-06-11 00:26:16

Which if any of these system variables work in Captivate 3? Thanks.

Like
()
2009-05-16 00:31:44
2009-05-16 00:31:44

I’ve never used the quiz variables. How do these work in an actual implementation? For example, can I just use:myButton.onRelease = function(){cpMovie.cpQuizInfoTotalQuizPoints = 100;}and then expect the Captivate movie to make the call to the LMS for tracking? I’m guessing not, since the quiz variables are all prefaced with cpQuizInfo (versus something like cpQuizCmnd) and perhaps are just read-only? And even if they are settable, will the setting trigger the LMS tracking call?

Like
()
Add Comment