Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 2:52 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: January 24th, 2009, 1:08 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
:D Thanks Lar_123; My problem is partially solved this quizz on memorization of the issues.

:? Now I have some doubts about how to implement a clock and how to work with questions randomly in bookmarks.

:) Based on some measurements, I am making some important changes in the program that I am developing.

:?: I need to add a clock to count the time of the User in the publication. At the end of a specific time, say 10 minutes, the publication is the final result of a page, the User has not completed or answers to all questions.

:roll: I tried to implement a clock through script. Mount an example with 5 pages and a page master with the clock, and to navigate between the pages, always got the same error.

.... Object Not Found : The called object is not a valid object type (undefined? null?)

:?: My problem is to keep this clock counting the time when the User navigate between the pages. I could not implement error correction as the tips of Duncan Lilly in this digital workshop forum as transcript below.

"The problem is due to the fact that CreateClock() will return null if the specified clock already exists.
You could check the return value before assigning it to the variable you wanted to use: Code:
NewClock = CreateClock("ScriptClock","QuizTimer","[mm]:[ss].[f]");
if (NewClock != null)
{
QuizClock = NewClock;
}
QuixClock.Start()"

:?: I tried to change the code, implementing the clock of the page master page on all other pages. I can not do the clock continues to count.

:wink: I need that clock in the navigation function, which returns the User or below the existing pages.

:?: Also needed to verify, in the case of Random page, if there is possibility of using bookmarks in scripts, so that the program mark each page that was seen by random User, allowing it to navigate between the pages, check your answers.

:roll: Browse randomly forward is peaceful, but how to arrange pages which have already seen how at the same time, keeping them in an order, as the numbers from 1 to 5 that put the layout?

:roll: As the pages are viewed at random, a table appears sequentially, dial numbers and side allowing the User to review the page marked. If the User clicks the number of the question presented, would the corresponding random page that number.

:?: This is possible through scripts of bookmarks?

I hope someone help me because consulted throughout the forum for similar problems and even help in the opus not found solution to my problem.


You do not have the required permissions to view the files attached to this post.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2009, 9:17 pm 
Offline

Joined: March 8th, 2005, 9:40 pm
Posts: 63
Hi Nilson,

If you do a search on the forum, you will find a number of posts regarding "clock" or "ticker".

Perhaps this might also help... Its from page 266 of the OpusScript manual

Quote:
TimeGetSeconds
Syntax:

TimeGetSeconds()
Return:
The number of seconds the current publication has been running.
Remarks:
This function will return the number of seconds currently
publication has been running.
Example:
var pubTimeRunning = TimeGetSeconds()


Regards
Nitro

_________________
Opus Pro V6
Dell Inspiron 9400
Intel Centrino Duo 2GHz
2 Gig Ram
XP SP2


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2009, 4:39 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
:) I appreciate the tip, Nitro.

:( I am newbie in programming scripts. Downloaded some tutorials to study and I am hard to achieve my goals and I have received valuable help from some users of the forum. Unfortunately, we do not know the correct way to implement the programming of some variables.

:roll: You could send me an example of a clock that is shown on every page of the publication time of counting the same and the end of a specified time, say 10 minutes, presenting the User a message such as "time out" and refer the User a final page?

:wink: I appreciate the help.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2009, 6:25 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Simply have the clock script on an initial page NOT on the master or any other page and it will continue until you tell it to stop.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 27th, 2009, 11:00 pm 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
:) Thanks for the tip Mackavi, but the challenge is greater than it may seem.

:lol: If I put the clock at start page, I can secure it to the start button, when the User to click to start the test.

:( But as you said, as rookie in programming, not even know how to keep this script running on other pages and then, take a timeout to close the test page and go to a final.

:roll: I will try here, but fear not achieve much success. In any case, thank the force.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: January 27th, 2009, 11:27 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
In which case, you need a loop that constantly checks the status of the clock. There are several ways of doing this - in a script use fork but it's probably simpler to use the the 'ticker' action to check the status every second.

BUT, if you are going to use a ticker, then you may as well scrap the clock altogether and use the ticker for the timer.

simply have the ticker increment a variable by 1 for every second. Add a check that compares the variable to a known amount - IE 60

//example script for ticker action
myCounter++
if (myCounter == 60) GotoPage("GameOver")

There are plenty of examples of ticker usage on the forum and you'll also need to locate the base10 to base60 script that displays the myCounter in a traditional timer format.


Mack

P.S I'd drop the excess use of the smiley faces - it makes your posts harder to follow - IMHO.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 1st, 2009, 1:52 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
Thanks for your tips, Mackavi.

I would be asking too much if you do download the file then I left on my last post, after put a clock running on that pages or send me an example that will examine how the program works?

I need a lot of clock running on all pages. I tried to do something here but as I got no satisfactory result.

I will be very grateful.

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
 Post subject:
PostPosted: February 5th, 2009, 9:57 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Nilson,

I'm going to use this problem of timers to evaluate a web conferencing system call dimdim. If you can join in then great, but I'll post the IMP example here after the lesson either way.

viewtopic.php?t=3549

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Problematic Quizz - The Return
PostPosted: November 5th, 2009, 3:53 am 
Offline

Joined: December 13th, 2008, 3:15 pm
Posts: 152
Location: Brasil
Opus: 7
OS: Windows 7 x64
System: Asus P5Q3 Deluxe, Core 2 Duo E8500, 8 Gb DDR3 1333 mhz, His IceQ5 5770 HD Graphic Card, Samsung T220 Monitor; Lenovo G550 T6600, 4 GB DDR3 - 15,6".
I'm still struggling with the problem this quizz. Now, trying to do something with random chapters, as posted in another topic because this one was getting too big!
I hope that users who come here, also check the other topic and give their suggestions on the problem. I would be very grateful!
viewtopic.php?t=3820
Cheers to all!

_________________
"To the ignorant, old age is the winter of life, for the wise, is the season of harvest."
It is not easy to translate the world into a binary code of 0s and 1s, but in scripts, anything is possible!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 39 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 40 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