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

Pausing slides using Javascript

Explorer ,
Nov 17, 2017 Nov 17, 2017

Copy link to clipboard

Copied

Hello everyone!

I need to pause a slide using Javascript if possible. I tried using window.cpAPIInterface.pause(); to no avail. I suppose it's because I use it in a SCORM file, and not in a video format, but I have not found any other way to pause the simulation using Javascript.

Is there something I'm missing?

P.S. I tried that function as a standalone javascript on entry of a slide, so it's definitely this function that's not working.

TOPICS
Advanced

Views

249

Translate

Translate

Report

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 ,
Nov 17, 2017 Nov 17, 2017

Copy link to clipboard

Copied

Try setting the system variable cpCmndPause to 1.

Why does it have to be JS? There is a command Pause available for each event.

Votes

Translate

Translate

Report

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 ,
Nov 29, 2017 Nov 29, 2017

Copy link to clipboard

Copied

LATEST

Thank you Lieve.

It had to be in JS because it was part of a larger script that I could not handle in Advanced Actions. I tested that function by itself, in addition to a number of different methods such as window.cpAPIInterface.setVariableValue("cpCmndPause",1);

Nothing has worked and eventually I just worked around the problem instead.

Votes

Translate

Translate

Report

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