Skip to main content
Participating Frequently
July 12, 2016
Question

Navigating to a slide using the jsInterface

  • July 12, 2016
  • 1 reply
  • 387 views

(Using Captivate 9 - Publishing to HTML5 - using Firefox as a browser)

I have inserted the following command into the javascript window.

window.cpAPIInterface.setVariableValue('cpCmndGotoSlide',5);

control jumps to that slide, but it does not start to play the slide.

I tried adding:

window.cpAPIInterface.setVariableValue('cpCmndResume',1);

The slide still did not start to play.

When advanced actions were used to jump to slide 6, a continue action was added and the slide started to play as expected.

Is there a javascript command that would accomplish the same thing as the "continue" action in an advanced interaction.

    This topic has been closed for replies.

    1 reply

    BDuckWorks
    Inspiring
    July 14, 2016

    I don't see any similar command for GotoSlide, but if you can capture the frame within the Cp project, you can use 'cpCmndGotoFrameandResume.'

    For reference, see this file:

    http://captivate.kimmwiens.com/wp-content/uploads/2016/02/SysVarsCP8.pdf