Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Displaying user variable value based on advanced action in Run Time

Explorer ,
Jul 14, 2015 Jul 14, 2015

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?

615
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jul 14, 2015 Jul 14, 2015

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 eventua

...
Translate
Community Expert ,
Jul 14, 2015 Jul 14, 2015

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

this advanced action, please?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 14, 2015 Jul 14, 2015

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 14, 2015 Jul 14, 2015

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jul 14, 2015 Jul 14, 2015
LATEST

Thanks a lot Lilybiri. I have used the event triggers before but it didn't occur that I should use it for advanced actions too.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources