Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Jan 2005
    Posts
    5

    User saving images from presentation

    Okay, tooling around, and can't seem to find anything, so I'll ask you all:

    Is there an action, that will allow the user to save an image on from the presentation? Trying to put together a variety of images, pdf files, cad files, and the like for our companies dealers; however, these files are of no use, if they can't be saved by the user.

    Thanks.

  2. #2
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    You can use a File.Copy() action to save a file from your project to the users hard drive. You can use variables in this action so you should have no problems getting this going.

    Please post back if you need more help.

    Adam Kapilik

  3. #3
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    The images are on the CD in the images folder. All you need to do is allow the user to choose a folder to "Save" to and then copy the file from the CD to the location chosen.

    Adam's faster'n me

  4. #4
    Join Date
    Jan 2005
    Posts
    5
    ok, having slight problems. used the help stuff to search for the Feile.Copy stuff, and thought I had a good understanding of what it was saying. I tried a few things out using examples listed. Specifically, example 1 which is:

    File.Copy("AutoPlay\\Docs\\*.txt", _TempFolder .. "\\Text Files", false);

    Now, I had to change a few things around in the action. Mainly the folder name from "Docs" to "Images", and then I tried everything from leaving it as broad as *.jpg to locating specific files (which is what I want to do in the first place).

    However, when I preview I receive the following error code:

    "There was an error copying the files to your system. Please try again".

    No other messages, or info. Now, something has happened, and I'm getting nothing on the preview. When I try '_MYDOCUMENTS' as shown in example three, I get another error message "On click, Line 1: attempt to concatanate global 'MYDOCUMENTS' (a nil value).

    Appreciate your input.....

    I'm sure this is all operator error ;-)

  5. #5
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    Does the folder _TempFolder.."\\Text Files" exist? If not, it needs to or the copy will fail. File.Copy will not dynamically create the path for you.

  6. #6
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    You may want to look at the Dialog.FolderBrowse action to allow the user to select where the file is to be copied. If they press Cancel the dialog returns "CANCEL" so you will want to check for that before doing your File.Copy.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  7. #7
    Join Date
    Jan 2005
    Posts
    5
    thanks worm, i'll check that out. i suppose it could straight into someones documents, tried that, will continue, see what i come up with.

    tigger, i messed around with that action, it allowed me to create a folder, but then i suppose there would have to be another action, to copy it into folder right?

    thanks again!

  8. #8
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    Quote Originally Posted by bstoker
    tigger, i messed around with that action, it allowed me to create a folder, but then i suppose there would have to be another action, to copy it into folder right?
    It allows the person to create or select a folder that already exists. Once they have selected the folder you can use the returned result from the Dialog.FolderBrowse action as the destination for the File.Copy action.

    Code:
    strFolder = Dialog.FolderBrowse("Select Folder", _SourceFolder .. "\\AutoPlay");
    if strFolder ~= "CANCEL" then --they selected a folder rather than pressing cancel
    File.Copy(_SourceFolder .. "AutoPlay\\Docs\\*.txt", strFolder, false, false, false, false, nil);
    end
    Tigg
    Last edited by TJ_Tigger; 02-11-2005 at 10:55 AM.
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. AMS5: user customizable images?
    By gnetcanada in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 11-28-2003, 01:52 PM
  2. images presentation
    By lsi000 in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 10-29-2002, 08:20 PM
  3. HOWTO: Prompt the User for Confirmation Before Exiting
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 09:50 AM
  4. User configurable images
    By gnet in forum AutoPlay Media Studio 4.0
    Replies: 14
    Last Post: 09-25-2002, 12:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts