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.
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.
Copy link to clipboard
Copied
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.