Andromo - Start Making Apps - Free Signup

Announcement

Collapse
No announcement yet.

KB: Creating CD-ROM Browsing Windows

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • KB: Creating CD-ROM Browsing Windows

    AutoPlay Media Studio 5.0 Knowledge Base

    Creating CD-ROM Browsing Windows

    Document ID: IR10076
    The information in this article applies to:
    • AutoPlay Media Studio 5.0 Standard Edition
    • AutoPlay Media Studio 5.0 Professional Edition

    SUMMARY

    This article describes how to create CD-ROM browsing windows.

    DISCUSSION

    In AutoPlay Media Studio 5.0, it is possible to open a folder on a user's machine, either within your project, or in an external window (the same as double-clicking on a folder on your desktop). It is also possible to open a folder in explore view (the same as using windows explorer).

    • Opening a folder within your project: (Pro Edition Only):

      1. Create a web object, and name it Web1.

      2. Call the action Web.LoadURL:
        Web.LoadURL("Web1", "C:\\");
        If the user does not have Internet Explorer 4.0 or later as their default browser, the folder view will be html, not windows based.

    • Opening a folder in an external window:

      1. Call the action File.Open:
        File.Open("C:\\", "", SW_SHOWNORMAL);

    • Opening a folder in an explorer window:

      1. Call the action File.ExploreFolder:
        File.ExploreFolder("C:\\", SW_SHOWNORMAL);
        To browse the CD-Rom from your autoplay application, use _SourceFolder as the path to browse/open.

    MORE INFORMATION

    For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

    • Program Reference | Actions | File | File.Open
    • Program Reference | Actions | File | File.ExploreFolder
    • Program Reference | Actions | Web | Web.LoadURL

    KEYWORDS: AutoPlay Media Studio 5.0, CD Rom, Browse, Window


    Last reviewed: October 3, 2003
    Copyright 2003 Indigo Rose Corporation. All rights reserved.

  • #2
    Creating CD-ROM Browsing Windows

    I have found most users have problems viewing the CD ROM contents.

    Examples:
    Opening a folder in an external window:

    Call the action File.Open:

    Yours: File.Open("C:\\", "", SW_SHOWNORMAL);
    I Use: File.Open(_SourceFolder, SW_SHOWNORMAL);


    Opening a folder in an explorer window:

    Call the action File.ExploreFolder:

    Yours: File.ExploreFolder("C:\\", SW_SHOWNORMAL);
    I Use: File.ExploreFolder(_SourceFolder, SW_SHOWNORMAL);

    To browse the CD-Rom from your autoplay application, use _SourceFolder as the path to browse/open.

    However I still am having problems with viewing the ROM from within a project window. Nothing seems to work with this one.

    Comment


    • #3
      Hello,

      That's a good point about using the _SourceFolder (or _SourceDrive) variable, instead of "C:\\". I simply wanted to show how to open an explorer window, but it is important to note that rarely, if ever will "C:\\" reference a cd-rom drive.

      With regards to viewing the CD-ROM from within a project window . . . do you mean using Web.LoadURL to load the contents into a web object?

      I've attached a sample project that uses both _SourceDrive and _SourceFolder combined with a web object. Let me know if that works for you, or if i'm missing the bigger picture.
      Attached Files

      Comment

      Working...
      X