Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: inserting a clock in a page
PostPosted: February 1st, 2008, 11:36 pm 
Hello

I would like to insert a clock in a page that can be trigered by a button and stopped by another button after the child finishes the exercise.
The exercise is a drag and drop grammar exercise in which one child tries to beat the best time achieved by another child during the resolution.
I think this is possible to do with opus xe but I guess it will be only through script, but I'm not sure if there is another way of doing it. I would prefer not using script language since I have a lot of difficulty in handling it ( any good book or manual out there? )
Thanks in advance.


Top
   
 
 Post subject:
PostPosted: February 2nd, 2008, 8:34 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
Hello AD,

A "count-up" timer is actually pretty easy to do, especially the way you've outlined it as a somewhat manual start and stop.

Please do a Search here on the forum... for one or more of the following: timer countdown clock ticker

Others have posted some solid hints and even sample .IMP pubs probably right on-track for what you want. I recently saw a neat one that did what you asked and displayed an emulation of an analog clock. You'll see the Attached files if you're logged in. Also, do read the complete post for those, since contributors add-to or fix the sample pubs progressively.

I just posted a sample pub over in Tutorials recently. Your search will find it. It does use scripting, but would be easy to copy its 2nd page over I'm sure.

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


For this message Lar_123 has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 2nd, 2008, 3:55 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
You can create a clock in actions...just search the general Opus help for 'Clock Actions'
You can then use buttons to trigger the clock... start, stop, pause




You can also create a script clock. Create it when the first page loads, then attach the start/stop to buttons.


Code:
myClock = CreateClock("ScriptClock","clock_var","[hh],[mm],[ss],[ff]")

myClock.Start()

myClock.Stop()




With the script clock, you then have to extract the minutes/seconds from the clock_var, so the actions may be an easier route??


If you need more specific help on the actions, post again and myself or someone else will help.

Sandy

_________________
Whoever designed this, never actually used it!


For this message sandyn has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 3rd, 2008, 6:42 pm 
Offline

Joined: February 26th, 2005, 2:44 pm
Posts: 58
Thank you, Sandy

_________________
http://www.akidsheart.com
http://www.storyit.com


For this message Roxie has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 61 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group