Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 24th, 2025, 11:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Any limit to variables in a publication
PostPosted: July 6th, 2005, 2:08 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

I'm working on a complex publication in 05XE that will likely, when completed, have several hundred publication variables storing information to the registry, plus several hundred actions. Since the pre-set Opus actions (for example, any action, like "go to page," "write to registry" not needing scripting) are easier to use than scripting, I am constantly using the small script editor for 2 main buttons. These 2 script editor boxes contain an enormous number of lines, mixing pre-set actions with script (when a pre-set action isn't available). While I could probably turn pre-set actions into script and possibly even use the larger script object, this would take alot longer (for example, copying and pasting the registry key pathway each time instead of a simple 'write or read to registry' action).

My questions:

(1) Can Opus and the registry hold a very large number of variables or will they run out of space?
(2) Can the small script editor hold a very large number of actions allowing me to simply keep going forward adding more?

If possible, I would like to simply keep going forward, but would prefer not to spend countless hours working on this project only to find out I "ran out of road" with the registry, variable space or script editor capacity, having to discard all my work and start over.

I hope someone who has been down this path can shed some light.

Kind Regards,
Stephen
swartel@nycap.rr.com
05XE


Top
 Profile  
 
 Post subject:
PostPosted: July 6th, 2005, 10:11 am 
Offline
User avatar

Joined: October 25th, 2004, 10:33 am
Posts: 257
Location: UK
Opus: Pro 8
OS: Windows 7 Professional x64
System: Dell XPS15 i7x4 2.1Ghz 6GB 128GB SSD
Both could run out eventually, but I think you'd have to be into the millions and possibly billions to reach that point.

Let us know if you get there. :wink:


Top
 Profile Visit website  
 
 Post subject:
PostPosted: July 6th, 2005, 10:17 am 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Purely in the interests of organisation you might find it simpler to put multiple script objects on the page and put your script functions in those, rather than putting them all into a couple of huge actions.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject: Any limit to variables in a publication
PostPosted: July 6th, 2005, 12:08 pm 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi Dave and Duncan

Thanks for your replies.

I'm unfamiliar with using script objects. A critical factor will be whether a single button's actions (for example "save"all the positions of the dragged and dropped vector objects on the page) scripted into one can run properly. When I experimented and tried to lump multiple script actions in the script editor, to make my task easier, it didn't run well. I abandoned the attempt and re-did these as separate scripts. It may well have been that there were other script errors (like an absent " or () causing it not to work correctly).

So, I'm going to try again to lump scripts together in a script object. The script object interface is larger, easier to use and has more functionality, like find and replace. If I can get it working (and, in run time, running) correctly, copying, pasting, find and replace would be alot easier and faster for this large job. Technically, I can't see why lumping them together won't work, since the button and script editor has them together, although sequential, one action or scrip after another.

Another challenge: finding and translating all of the triggers/actions that were pre-set in Opus (for example, "left mouse click," "right mouse click") into correct script actions.

Any ideas will be appreciated.

Kind Regards,
Stephen


Top
 Profile  
 
 Post subject:
PostPosted: July 6th, 2005, 12:18 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Just call the functions in the script objects from the script actions.

So you have the normal Left Mouse CLick trigger (for example) with a Script action in it that calls the function MyLeftClickFn() (for example) which is declared in a script object on the page.

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject: Any limit to variables in a publication
PostPosted: July 7th, 2005, 11:46 am 
Offline
Godlike
Godlike

Joined: November 11th, 2004, 1:18 pm
Posts: 1213
Location: New York
Opus: Opus Pro 9.75
OS: Windows 10 Pro 64 bit
System: Core i7, 16G RAM, Nvidia 640GT (desktop), plus Windows 10 and Android tablets
Hi

Thanks for the ideas. While I've yet to figure out how to use the script object, since I'm still unable to set up a trigger in it like a single left mouse click to initiate all the script that follows, I was able to resolve issues and keep going forward:

(1) I did set up additional buttons to hold the script actions. It appears that you can place one atop the next, and they all work at the same time when clicked. This avoids placing enormous numbers of actions and scrip into any one. I wonder if it's even possible to add a frame to hold all buttons stacked together.

(2) The script editor can be resized on the screen to make it larger and easier to work in (not as crowded).

These 2 solutions work fine.

Thanks again,
Stephen


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

All times are UTC [ DST ]


Who is online

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