Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 9:10 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Script problem X Ready Actions
PostPosted: September 13th, 2011, 7:21 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".
have an issue you would like the opinion of the companions of this forum.

I learned from the master Sandy, Mack, Osni and others to take scripts in place of Opus actions ready. Almost everything that happens in Opus can be programmed in scripts ... so very cool!

I have a hidden object (text) on the page when displayed, check the state of a variable that checks how often a frame containing a picture was shown. This object enables a button to expand the user table with this figure, if He - or She think necessary.

Unfortunately, the script attached to "onShow" this text sometimes works and sometimes is ignored by Opus. I tried to very reluctantly (Argh!) put the same script in the actions ready and then the business is fully functional.

Annex figures for the fellow to try to understand where I'm wrong.

I'll be waiting for help. Thanks Scripting guys!


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: Re: Script problem X Ready Actions
PostPosted: September 13th, 2011, 11:17 pm 
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
Nilson,

Intermittent problems are especally hard to solve sometimes.

Quote:
Unfortunately, the script attached to "onShow" this text sometimes works and sometimes is ignored by Opus.
In order to debug and solve, I think you must monitor the value of your variable which is in your test condition.

Code:
Debug.trace("Pict06 \t" +checkPict06_Status  +"\n")

//or you may want to view the True/False:
var testPict06 = String.bool( checkPict06_Status <= 1 ) ;
Debug.trace("Test of Pict06 \t" + testPict06  +"\n")


Other than that, you may have other logical errors or inconsistent actions. You did not provide complete story, for example where and how some of these object get hidden or disabled. Or how that key variable is changed. You also have to check the timing... what is happening at certain times (may be related to your wait or delay). You could easily animate something on screen for 10 sec., so you can see that the User is within that interval or outside/after it.

Good luck.

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


Top
 Profile  
 
 Post subject: Script problem X Ready Actions
PostPosted: September 30th, 2011, 11:45 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".
Lar_123, always ready to help.

In my project, there are many variables working together and I had to find some interference in names, syntax and values. Calmly and persistence, I correct these details and the problem seems to be resolved.

Again, my thanks.

_________________
"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  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

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