Digital Workshop

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

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Publication, which can be opened only from outside program
PostPosted: February 12th, 2007, 6:17 am 
Offline

Joined: February 1st, 2006, 2:42 pm
Posts: 8
I want to make the publication in Illuminatus Opus , which can be opened only from outside program (written by me).

When the publication will be called from the program it should opens itself, but when the publication will be treated as standalone program it should display the message: "Sorry, that publication can be opened only from the main program".

How to achive that? Thanks in advance for ideas.

Andrzej


For this message Wiktor has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 12th, 2007, 7:33 am 
Hi Andrzej

Can you make sure that I understand what you want?

1. As I understand it, you have a program that you have made in Opus. Let's call this Opus_program so I don't get confused. :?

2. You have another program which you have written yourself. Let's call this program Your_program.

3. You want to be able to call Opus_program from within Your_program.

4. You don't want anyone to be able to launch Opus_program without doing so from within Your_program. Am I correct in my understanding?

I, and most others who might try and help you, would find it useful to know exactly which version of Opus you are using, and perhaps some information about your hardware and OS. For example, like appears at the bottom of my post.


Top
   
 
 Post subject:
PostPosted: February 12th, 2007, 8:37 am 
Offline

Joined: February 1st, 2006, 2:42 pm
Posts: 8
Yes. You are righ.

Thanks for help.

-------------------
Andrzej
South od Poland

Illuminatu Opus Professional 2.81
Windows 98


For this message Wiktor has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Publication, which can be opened only from outside program
PostPosted: February 12th, 2007, 9:10 am 
Offline

Joined: January 21st, 2005, 2:53 am
Posts: 26
Location: Melbourne, Australia
Wiktor,

I have achieved this using one of the following methods:

1 - In older systems I had "Your Program" create a temporary file in a specified directory on the hard drive, with a certain value in the file. I would then have "Your Program" launch the "Opus Program" and upon starting up have the "Opus Program" retrieve the file from the specified directory and read the value using the preshow function . If the value was correct it would goto the "First Page" of the "Opus Program". if it was incorrect then an "Illegal Start" page was displayed with the only option being an "Exit" button which would terminate the "Opus Program".

You must ensure that when the "Opus Program" finishes, having shown your publication or by going to the "Illegal Start" page that it deletes the temporary file.

2 - In newer systems you can use the system registry in a similar manner.

Hope this is of some value.

Regards

Don

_________________
Don Tomkins

Kingsmere Pty Ltd


For this message KPL has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 12th, 2007, 9:20 am 
Thanks Don -- you beat me to it.

Great minds must think alike. :D


Top
   
 
 Post subject:
PostPosted: February 12th, 2007, 9:32 am 
Offline

Joined: February 1st, 2006, 2:42 pm
Posts: 8
Simplicity Is Beautiful! Thank you KPL, Thank you Sentosa.

Andrzej


For this message Wiktor has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: February 13th, 2007, 12:22 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
Or you could pass a "magic" (eg. some hard to guess random string) command line parameter to the Opus publication and check that on your first page; if it doesn't match go to an "error" page and exit, otherwise go to the first "real" page and run correctly.

_________________
ddww Opus Developer


For this message Duncan Lilly has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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