Skip to main content
Known Participant
March 21, 2017
Answered

Time Limit for complete Quiz in Adobe Captivate 8

Hello! I'm using Adobe Captivate 8 and I know that it is possible to set up a time Limit on every slide. Does anyone know a solution if I Need a timelimit for the whole quziz? I'm looking forward to your answere. Kind regards from Vienna by Gerhard.

This topic is closed to new replies. Start a new post to keep the conversation going.
Lilybiri
LilybiriCorrect answer
Legend
March 21, 2017

I use Timer or Hourglass interaction to achieve it. Have a look.

5 replies

Lilybiri
LilybiriCorrect answer
Legend
March 21, 2017

I use Timer or Hourglass interaction to achieve it. Have a look.

Translate
Known Participant
March 31, 2017

Thank you very much for this solution and for quick answering the request! Kind regards from Austria!

Translate
Lilybiri
Legend
March 31, 2017

Gern geschehen, Gerhard!

Translate
TLCMediaDesign
Inspiring
March 21, 2017

I imagine it would be easy enough to start a timer as soon as the first quiz question is encountered.

What would you want to happen if the time runs out?

This script runs every second for 50 minutes, the variable timeLimit is the number of seconds for the total time allowed. It's automatically triggered when you encounter the first question slide and works for SWF and HTML5.

var interfaceObj, eventEmitterObj;
var timerStated = false;
var timeLimit = 3000;

window.addEventListener( 'moduleReadyEvent', function ( e )
{
interfaceObj = e.Data;
eventEmitterObj = interfaceObj.getEventEmitter();
initializeEventListeners();
});

function initializeEventListeners()
{ 
if ( interfaceObj )
{
  if ( eventEmitterObj )
  {
   eventEmitterObj.addEventListener( 'CPAPI_SLIDEENTER', function ( e )
   {     
    if (  e.Data.st == "Question Slide" && !timerStarted )
    {
     timerStarted == true;
     startTimer()
    }
   }); 
  }
}
}

function startTimer()
{
    setInterval( function ()
{
        timeLimit--;

        if (timeLimit < 0)
  {
            //do something
        }
    }, 1000 );
}

Translate
Known Participant
March 31, 2017

Thank you very much for this solution and for quick answering the request! Kind regards from Austria!

Translate