Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 21st, 2024, 6:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Sample countdown timer and an Elapsed time tracker
PostPosted: January 23rd, 2008, 12:08 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
I wanted to figure out how to use time functions and such.

Here's a sample Pub you might find helpful... it's a work in progress, but maybe bits and pieces will be useful for some.

Pub illustrates two kinds of approaches to "timers". One type starts by some trigger and continues to 'run' and visibly show time changes. The other is more 'static'. Starts by a mouse-click trigger, and gets and shows elapsed time whenever a second button is clicked.

That second approach could be made to 'run' by adding some coding or a ticker. Would need loop or for script with a wait command. There are a few other ways to achieve as well.

The approach I took uses Opus Scripting. It is possible to build similar actions in standard actions and variables.

One 'gotcha' I found was that my second, 'static' approach would not work as a script triggered on Page Show(). Could be my mistakes at the time, or some limitations in the approach I used. Anyway, I'm leaving it there... a start and an exercise for any who want to refine it.

There are some simpler ways to 'pick-up' time values or to do time conversion calculations. I wanted to test out some things so I did what I did.

You'll find some //comments at end of first page's script action for the countDOWN timer.

Have fun.


Attachments:
File comment: Two pages. One for Countdown timer. The other for some Elapsed-time calcs.
Countdown timer.imp [60.62 KiB]
Downloaded 1535 times

_________________
_good things come to those who wait(0)_


For this message Lar_123 has been thanked by : mackavi
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group