Stop and restart a timer in Lectora
April 20, 2007 12:00 AM
Here's my suggestion...Create an Action Group (AG - GoTo Next Page) to house your current "GoTo Next Page" Action.Create an Action on the page as follows:On: ShowAction: Run Action GroupTarget: AG - GoTo Next PageCreate an additional Action under your Start button as follows:On: ClickAction: Run Action GroupTarget: AG - GoTo Next PageThis combonation will reset your timer and allow the action to continue as designed after 15 seconds.To explain the problem...if I hit Stop, the "Run" variable is now set to one, but the timer doesn't actually stop counting...so when the 15 seconds ends...the variable is still at 1. By adding the Action Group and reinitiating the Action, this essentially resets the timer. Keep in mind...it won't remember the elapsed time when the Stop button was clicked. Meaning, if the viewer clicks the Stop button at 6 seconds into the 15 and then click the Start button again...the timer doesn't start at 6 seconds. It will start back at 15 seconds again. Hope this helps!?!
Discussions have been disabled for this post