Copy link to clipboard
Copied
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.
I use Timer or Hourglass interaction to achieve it. Have a look.
Copy link to clipboard
Copied
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 );
}
Copy link to clipboard
Copied
Thank you very much for this solution and for quick answering the request! Kind regards from Austria!
Copy link to clipboard
Copied
I use Timer or Hourglass interaction to achieve it. Have a look.
Copy link to clipboard
Copied
Thank you very much for this solution and for quick answering the request! Kind regards from Austria!
Copy link to clipboard
Copied
Gern geschehen, Gerhard!