2 Replies Latest reply on Jul 9, 2008 3:40 AM by Newsgroup_User

    Touchscreen Presentation

    kiocom
      I am doing a Tradeshow Kiosk Touchscreen presentation and need to restart a slideshow after 90 seconds of inactivity in Director 11.

      The lingo I'm trying is:
      on startmovie
      the timeOutScript = "RestartMovie"
      -- 60 ticks per second
      the timeOutLength = 60 * 90
      end

      on RestartMovie
      go to movie "Intro"
      end

      but it is obviously not working. Any help would sure be appreciated

      Thanks in advance,
      Joe
        • 1. Re: Touchscreen Presentation
          Level 7
          kiocom wrote:

          > I am doing a Tradeshow Kiosk Touchscreen presentation and need to restart a
          > slideshow after 90 seconds of inactivity in Director 11.

          Hi Joe,

          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:
          http://www.deansdirectortutorials.com/Lingo/screensaver.htm

          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

          regards
          Dean

          Director Lecturer / Consultant / Director Enthusiast
          http://www.deansdirectortutorials.com/
          http://www.multimediacreative.com.au
          email: d.utian@unsw.edu.au


          • 2. Re: Touchscreen Presentation
            Level 7
            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.

            on idle
            if the lastEvent>60*90 then
            go "intro"
            end if
            end