Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2008
    Posts
    9

    Really basic picture question

    I know how to use the Quick Action to get a single picture to open. I am at a loss however as to how to write a script to open several pictures at once. When I use the File.Open, nothing opens up, even when I use only one line of code and I ask it to open only one picture (.jpg). I did not move the picture to the project directory, as the tutotial says that AutoPlay will automatically copy the files from any directory on my computer to the project directory. How can I get AutoPlay to open several .jpg files at once?

    Thank you for your help

  2. #2
    Join Date
    May 2006
    Posts
    5,380
    File.Open would be the correct way to open a file using the system default for that file, if you used File.Open and it did not work then post your code.

    remember, if useing pic and fax viewer, only one image can be viewed at a time so if you call File.Open 10 times only the last image will be displayed.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  3. #3
    Join Date
    Jun 2008
    Posts
    9
    Here is my code:

    File.Open("AutoPlay\\Docs\\Main_Room_Panorama", "", SW_SHOWNORMAL);

    Please keep in mind that the path to the actual file on my hard drive is C:\Documents and Settings\Brian J. Rohan\Desktop\Main_Room_Panorama.jpg

    I left the code line as "" as I was under the impression that AutoPlay will automatically move the necessary picture file to the root directory of the CD when publishing the final project (and also when previewing the project)

  4. #4
    Join Date
    Aug 2003
    Posts
    2,427
    Try -

    Code:
    File.Open("C:\\Documents and Settings\\Brian J. Rohan\\Desktop\\Main_Room_Panorama.jpg", "", SW_SHOWNORMAL);
    AMS moves project assets to it's folder structure as they are used so if for instance you had inserted an image object on your page and specified the above file, then it would have been copied into the images folder.

    That is not what you are doing though. You are simply opening a file that exists somewhere by telling AMS to open it using the default viewer as specified on the system on which the application is running. This is done by invoking the file associations on the computer i.e. what happens when you double click a file in a windows explorer window. If you want to actually include the image on the page you have to insert an image object as I said.

Similar Threads

  1. Basic question: What exactly is MSI and better why?
    By ceciltss in forum MSI Factory 2.0 Discussion
    Replies: 1
    Last Post: 03-30-2008, 11:19 AM
  2. Really Basic Question
    By rgramza in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 03-25-2006, 11:17 AM
  3. Basic Flash question
    By aae991 in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-09-2005, 09:46 PM
  4. Basic Link Question
    By RobertB in forum AutoPlay Media Studio 5.0
    Replies: 13
    Last Post: 01-12-2004, 06:44 PM
  5. Basic Layup Question
    By RobertB in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 09-05-2002, 01:43 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