Skip to main content
cgokul
Inspiring
Jul 14, 2015 8:36 AM UTC
Answered

Displaying user variable value based on advanced action in Run Time

Captivate 8.0.1.242 - Windows 7 - 64 bit

I need to display the total time of the captivate file in a text caption. For this, after a bit of googling, found out that total time = cpInfoFrameCount/cpInfoFPS. I did create a user variable called "v_totalTime" and in advanced actions created a standard action called "totalTime" and added an expression v_totalTime = cpInfoFrameCount/cpInfoFPS.

The weird part now is, I dont know how to make this user variable to be displayed as text. In the text caption, when I type $$v_totalTime$$ and preview the slides within captivate, the value is not displayed. So I think, the advanced action is not getting triggered. So how to get this working?

This topic is closed to new replies. Start a new post to keep the conversation going.
Lilybiri
LilybiriCorrect answer
Legend
Jul 14, 2015 10:46 AM UTC

Even blog posts that are over 4 years old still get views at this moment.

Each action has to be triggered by an event: Events and (advanced) Actions - Captivate blog

In this case you can use the On Enter event of each slide. That means that the value of v_TotalTime will be refreshed only at the beginning of the slide.

Another tip: never type a variable in a Text container (shape or caption) but always use the X button in the Character part of the Properties panel, tab Style. That will avoid eventual typos (variables are case sensitive) and you can also edit the default length that will be used to display the variable.

4 replies

Lilybiri
Legend
Jul 14, 2015 9:33 AM UTC

You are clearly pointing to one of my blog posts. Which event is triggering

this advanced action, please?

Translate
cgokul
cgokulAuthor
Inspiring
Jul 14, 2015 9:47 AM UTC

Yes Lilybiri. Sorry I didnt make the connect with your actual name. It was a 2 year old post. Hence, I didnt ask there.

Well that's the problem. I don't know how to trigger it. I mean I need it to display the value as text caption moment the slide is displayed. So how do I get it done? I thought by typing $$variableName$$ in the text caption will trigger the advanced action and will display the value but apparently not.

Translate
Lilybiri
LilybiriCorrect answer
Legend
Jul 14, 2015 10:46 AM UTC

Even blog posts that are over 4 years old still get views at this moment.

Each action has to be triggered by an event: Events and (advanced) Actions - Captivate blog

In this case you can use the On Enter event of each slide. That means that the value of v_TotalTime will be refreshed only at the beginning of the slide.

Another tip: never type a variable in a Text container (shape or caption) but always use the X button in the Character part of the Properties panel, tab Style. That will avoid eventual typos (variables are case sensitive) and you can also edit the default length that will be used to display the variable.

Translate