Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:28 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Storing information in variables
PostPosted: January 15th, 2008, 12:00 am 
Offline

Joined: May 17th, 2007, 6:30 pm
Posts: 18
Location: Galway Ireland
I have quite a few input boxes in my publication with variables. These variable retain input while the programme is running but are lost onece the publication closes. Is there any way of storing the information in the variable for retrieval later or and printout at a later date. Would be grateful for any help on this. Urgent

des :?


For this message des neylon has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 15th, 2008, 1:39 am 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
des,

Lars_13 answered your question at the following link. See it for storing information.

viewtopic.php?t=3061

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Saving information in variables for viewing and printing
PostPosted: January 16th, 2008, 12:59 am 
Offline

Joined: May 17th, 2007, 6:30 pm
Posts: 18
Location: Galway Ireland
Thanks to everybody for your help Some of the suggestions have been a great help. I have placed the variable in text and am able to view its contents there. However I am not able to save the information so that I can recover it later for viewing and printing. Could anybody simplify the process for me. More manageable steps would be great. I can do some basic scripting with triggers and actions but nothing complicated,
Please Help if you can
Thanks,
Des

_________________
I can do some basic scripting with triggers and actions. But not advanced.


For this message des neylon has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 16th, 2008, 1:33 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
des

have a look at the attached file. I suggest that you look at it and then publish to create an exe file to test. It will (should) create the file "write_line.txt" in the same folder as your exe file.

You should note that the text file included in the attached zip is not the one used by the published file, it was use for testing by me.

Hope it helps.


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

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Saving information in variables for viewing and printing
PostPosted: January 24th, 2008, 10:43 pm 
Offline

Joined: May 17th, 2007, 6:30 pm
Posts: 18
Location: Galway Ireland
I have tried saving variable information to a windows temp file in windows temp folder. This is a notepad folder. When I check to see what has been saved all i can see is text input 500 or some other number depending on the number of the text input box. I would really like to solve this problem as it is such an important part of my publication. I have tried solutions offered by others particularly by Lars but to no avail. Perhaps someone could help me. I have attached an imp file in the hope that this may help. I am not an advanced scripter but can do some work with triggers and actions



My specs are Opus 05 Windows xp RAM 500 MB HD 40GB


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

_________________
I can do some basic scripting with triggers and actions. But not advanced.


For this message des neylon has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 25th, 2008, 12:50 am 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Des, the only thing I see your text file (testOpus_011.txt) is the names of the Text Input boxes.

Look at Page 2 of the attached imp that you uploaded earlier. I changed 3 Properties, 2 Actions and added 2 variables.
see the storage action I added to
Text Input 500
Text Input 500(2)

next look at the Action applied to Button 102 the "Next" button

This bottom saves the information entered in Text Input 500 and text Input 500(2) to a text file located the OS's temp folder. On my XP system this is:
C:\Documents and Settings\Owner\Local Settings\Temp\store.txt

Open the imp I've uploaded in Opus
Enter text into: Text Input 500 and Text Input 500(2)
Click the Next Button
Hit escape

Navigate to your OS's temp folder and look for the file store.txt. If you can't find the file do a search for it. What ever you entered in the two input boxes should be seen in store.txt

On my system the text I've entered in the two input boxes shows.

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 25th, 2008, 12:52 am 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Forgot to add the IMP file in the previous post.


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

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Store.txt
PostPosted: January 26th, 2008, 3:38 pm 
Offline

Joined: May 17th, 2007, 6:30 pm
Posts: 18
Location: Galway Ireland
Thanks for the help Leo. I have done as you advised. I have entered text and clicked next, I have searched for the store.txt file without success using the search facility. Is there anything else I can do
I would really like to solve this problem. As its been dragging on.
Thanks Again
Des

_________________
I can do some basic scripting with triggers and actions. But not advanced.


For this message des neylon has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Store.txt
PostPosted: January 26th, 2008, 7:30 pm 
Offline

Joined: November 11th, 2004, 4:05 am
Posts: 636
Location: Christchurch, NZ
des neylon wrote:
Is there anything else I can do
I would really like to solve this problem.
Des


Leo has already solved this problem for you -- the example he gave you works.
store.txt is put into the temp directory with the required variables in it.

Paul


For this message Paul has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 26th, 2008, 7:41 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
des,

It seems that the imp file I uploaded still had reference to several action you had set in the pub. I fixed the problem and have created a zip file with a new imp file. I also included a copy of the store.txt file was created on my cpu just for you to look at, plus a screenshot showing where the store.txt file is placed.

NOTE: I've included a imp file named: read.imp
this will read the first 6 lines from the text file store.txt. It looks for the file in the system's temp folder.
Again my path is: C:\Documents and Settings\Owner\Local Settings\Temp\store.txt

1: Run the pub in Opus
2: enter text in the 6 ALL input boxes
3: click the Next button
4: on the "Next" page exit the program

Now, run the read.imp file. It your file store.txt is where the read.imp pub looks it will read the lines created with: Text Input Boxes.imp

If it don't locate the file, search for it and change the path (location) in the read.imp file.

I hope the above solves the problem. I just want to add that these to imp files work as expected on my system.


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

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


For this message Leo Taylor has been thanked by : mackavi


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

All times are UTC [ DST ]


Who is online

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