Skip to main content
jhrobb721
Participant
Sep 28, 2018 6:07 PM UTC
Question

Capturing Time in Captivate

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

jhrobb721
jhrobb721Author
Participant
Oct 1, 2018 4:31 PM UTC

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.

Translate
Lilybiri
Legend
Sep 28, 2018 8:16 PM UTC

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.

Translate
Inspiring
Sep 28, 2018 7:56 PM UTC

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

Translate