Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3

Thread: Countdown

  1. #1
    Join Date
    Aug 2008
    Posts
    20

    Countdown

    Hello,
    I was wondering if it's possible to make a countdown, for 108 minutes for ex. and in last 4 minutes if u don't type a code(4 8 15 16 23 42) it will happen something(ex. a dialog will show or w/e)

    PS: If someone saw Lost (TV Serie) than u will understand it easier

  2. #2
    Join Date
    Apr 2007
    Posts
    165

    its possible

    Use
    Code:
    page.StartTimer(1000)
    to start a timer that fires every second.

    Then create a time variable for example:
    Code:
    countdowntime = 6480 --6480 seconds = 180 minutes
    Then on the On_Timer event you subtract 1 from the variable countdowntime if its more then 240 (4 minutes). when the countdown reaches 240 (4 minutes) show a Dialog and stop the timer or something else
    Code:
    if countdowntime > 240 then
    countdowntime = countdowntime - 1
    elseif countdowntime == 240 then
    Page.StopTimer()
    Dialog.Message("BZZZZZZ TIME'S UP", "Mission failed.\r\n\r\nMUHAHAHAHAHHAHAHAHAHHAHAHAHAHA!!!!!!!!!!!!!!!", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1);
    end
    The code part you need to find out yourself. this is just a basic countdown.

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    lol, i love lost
    Last edited by RizlaUK; 02-01-2009 at 11:34 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. Timer countdown
    By limboo in forum AutoPlay Media Studio 7.5
    Replies: 3
    Last Post: 06-24-2008, 10:52 AM
  2. Time Countdown
    By imhotep in forum AutoPlay Media Studio 7.5
    Replies: 5
    Last Post: 06-05-2008, 07:29 AM
  3. Countdown
    By Stefan_M in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 01-26-2005, 02:09 PM
  4. A countdown timer for your projects...
    By Corey in forum AutoPlay Media Studio 4.0
    Replies: 1
    Last Post: 07-30-2003, 09:50 AM

Posting Permissions

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