Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Script help needed
PostPosted: October 4th, 2005, 11:07 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
I need to front a publication (Opus 05 XE) with a license advising the user that the program expires in a given number of days. I don't think the expiry is a problem (I plan to use simple “If” programming and the PUBLICATION EVALUATION variable) but I need to warn the user that the expiry date is approaching (i.e. “You have 30 days left before this program expires”) and I can’t figure out how to achieve this. Any help would be much appreciated.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 4th, 2005, 11:34 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 Roger

Not too experienced with scripting, I looked without success for a script function that would return the value equal to evaluation days remaining. I suspect, if it exists, it would be related to PUBLICATION_EVALUATION system variable.

However, how about setting up a text box, initially hidden with the
PUBLICATION_EVALUATION variable inserted into a sentence like
'You have <PUBLICATION_EVALUATION> left...' which you can show, using a regular Opus action (Show) or script (MyText.Show() triggered Pre- or OnShow when the viewer enters the pub's first page?

I think something like this could work.

Kind Regards,

Stephen


Top
 Profile  
 
 Post subject:
PostPosted: October 5th, 2005, 12:28 am 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
Stephen is correct simply use the <PUBLICATION_EVALUATION> variable, this variable counts down the number of days left until the publication expires (note this value does not start to decrease until you publish and run your publication.)

Regards

Brenden Knifton

PS as you know the initial number of days of the evaluation you could create a new variable to show the number of days the publication has been run for:

If your evaluation period is 30 days you can make a new variable and make its value 31-PUBLICATION_EVALUATION


Top
 Profile Visit website  
 
 Post subject:
PostPosted: October 5th, 2005, 7:20 am 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Thanks Stephen and Brenden. I appreciate your swift response.

I'll try what you suggest, and come back to you if I may.

Regards

Roger


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 74 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