This content has been marked as final. Show 2 replies
> I am doing a Tradeshow Kiosk Touchscreen presentation and need to restart a
> slideshow after 90 seconds of inactivity in Director 11.
By inactivity I assume you mean no mouse movement, clicks or key presses. Using
ticks and timeoutLength is old Lingo. Newer approach is through timeout
objects. That being said, the code should still work in D11.
Check out my 'Primary Event Handlers - Screensaver Lingo' tutorial. It covers
all you need. It is at:
First need to link any mouse/click/key evernt to your 'restartMovie' handler.
Then note the part at the bottom of my tut.
if the lastEvent > 10*60*60 then go to movie "screensaver"
-- lastEvent function returns the amount of time
-- passed since the last user event occurred
-- user events are either a mouse click, mouse
-- movement or key press
Director Lecturer / Consultant / Director Enthusiast
You don't want to jump back to the intro page every 90 seconds... you
need to check to see if there was inactivity for 90 seconds. In
Director, there is a property called 'the lastEvent' which gets updated
whenever the user moves the mouse or uses the keyboard. You can use
that to see how long it has been since user interaction occurred. I like
to put this code in a movie script in the 'on idle' handler so we can
make sure that Director is not doing anything at the time. the lastevent
will return the number of ticks (1/60 of a second) since the last event.
if the lastEvent>60*90 then