Skip to main content
jhrobb721
Participant
September 28, 2018
Question

Capturing Time in Captivate

  • September 28, 2018
  • 3 replies
  • 257 views

I have searched but have been unable to find a method to create the results of a time clock (punching in and out for work) in Captivate.

I can get the display to show the hour and minutes, but is there a way to capture that time and on the following display, show it and not allow it to change as real clock time advances? I would appreciate any help. Thank you.

This topic has been closed for replies.

3 replies

jhrobb721
jhrobb721Author
Participant
October 1, 2018

dan56, Thank you, that worked exactly as I wanted it.

Lilybiri, I was using an interactive object.

Thanks to both of you for your help.

Lilybiri
Legend
September 28, 2018

How are you showing the time at this moment? Are you using the timer interaction?  I'm asking this because there is a small lag between time showing with that interaction and the real time, which you can show in a way described in this blog post:

Display Time information - Captivate blog

To capture a time at a certain moment you need to have an event, which can be a slide event (no interaction of the user needed) or an interactive object Succes event (needs to be clicked/tapped). If you give some more details, maybe youll get a better answer.

Inspiring
September 28, 2018

Create a variable v_time

On enter for your time slide or on a button click:

assign v_time with cpInfoCurrentTime (or CurrentHour, or whichever time format you want)

Display  v_time in a text caption