User Tag List

Results 1 to 5 of 5

Thread: Getting associated filename.

  1. #1
    No Products Registered

    Join Date
    Sep 2006
    Location
    Australia
    Posts
    161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting associated filename.

    You know how you can "Associate" files to load with a certain application? well you can.

    I'm trying to work out how to do this in MMF2 and I would like it if someone could give me some pointers on what to do.

    Kthnx

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Getting associated filename.

    Use the YASO object, which comes with Bonus Pack #1.
    .:::.Joshtek.:::.

  3. #3
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Getting associated filename.

    I personally don't like using YASO, although it's an option.

    Another alternative (if you dare) is MaNuALLy aLtEriNg tHe RegIsTRy ::spine-chilling music o' doom, crack o' thunder, etc::

    Let me talk you through it

    In Windows, the registry is basically like another set of files and folders.

    The top five or so folders inside the registry are called Root Keys. They all start with 'HKEY_' in capital letters.

    The one we want is 'HKEY_CLASSES_ROOT' -- the registry folder that Windows uses to handle file types/classes.

    inside HKEY_CLASSES_ROOT, you create a folder for the extension you want. So if we're going to create a file extension of '.foo', we create a folder called '.foo' (remember the dot!)

    so basically, we're gonna go on a folder-creating spree. Note that in the registry, you can create Items (kind of like files) to hold data. If you leave the Item Name blank, then it a nameless "(Default)" item. Nameless items are used a LOT.

    So we create the following folders in the Registry. In this example, we're creating a .foo filetype:

    HKEY_CLASSES_ROOT\.foo\
    (set default value to "Some_Name_That_I_Chose")

    HKEY_CLASSES_ROOT\Some_Name_That_I_Chose\
    (set default value to "A description of my Foo file")

    HKEY_CLASSES_ROOT\Some_Name_That_I_Chose\DefaultIc on\
    (set default value to "c:\wherever\my\icon\file\is\located.ico")

    HKEY_CLASSES_ROOT\Some_Name_That_I_Chose\shell\ope n\command\
    (set default value to "c:\the\path\of\my\program.exe +plus_any_commandlines")


    And THAT, I believe, is it.


    It's more complicated by far, and there's the risk that you may stuff it up (not likely, but possible). But it's also very slick, and gives you the power to do a LOT more things.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Getting associated filename.

    Note: To use the Registry in MMF2 you need the Registry 2 object which comes with build 243. The beta of 243 is out now but you could wait for the release candidate.
    .:::.Joshtek.:::.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. increment filename if exists
    By septeven in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 18th February 2012, 07:31 PM
  2. Counter Value/Global Value into a Filename?
    By antipode in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 8th February 2012, 09:47 PM
  3. Show dialog filename in string object ??
    By anma004 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 26th February 2010, 04:53 PM
  4. Random filename?
    By Codemonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 14th January 2008, 01:02 PM
  5. Converting a long filename to a short filename
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 27th April 2007, 11:31 AM

Posting Permissions

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