Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2008
    Posts
    34

    Grin Need help with a counter

    I have a reading test, I need to timer out (3 minutes) the reader.

    How can I set a variable to count in minutes?

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    in your projects page on show event start a timer for every 1 second

    Code:
    Page.StartTimer(1000);
    Counter=0
    in your projects page on timer event put this
    Code:
    if Counter == 180 then
        -- counter limit reached
        Page.StopTimer()
        Counter=0
        -- your code here
    
    
    else
        Conter=Counter+1
    end
    you can then use "Page.StartTimer(1000)" in a button or page load or wherever to start the 3 min timer, it will stop automaticly when the limit is reached, remember to reset the "Counter = 0" if the user dose not time out

    hope that helps
    Last edited by RizlaUK; 07-03-2008 at 06:50 PM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Multi Counter
    By longedge in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 01-29-2008, 09:22 AM
  2. Example : Date Counter
    By Peyman in forum AutoPlay Media Studio 7.5 Examples
    Replies: 0
    Last Post: 10-14-2007, 09:16 AM
  3. Time Counter and Time Limit for a Quiz
    By Eit27 in forum AutoPlay Media Studio 6.0
    Replies: 1
    Last Post: 01-14-2006, 01:25 PM
  4. Instalarion Counter
    By DBrito in forum Setup Factory 6.0
    Replies: 1
    Last Post: 12-26-2003, 08:50 AM
  5. check connection-web counter
    By bjr in forum AutoPlay Media Studio 4.0
    Replies: 10
    Last Post: 04-21-2003, 05:16 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts