User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: Opening a file with double click

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Opening a file with double click

    If I make a map editor with MMF2 and I want people to be able to open up the maps they make with it by double clicking on the file, when the program launches, how do I tell it what file to use?

  2. #2
    No Products Registered

    Join Date
    Jun 2006
    Posts
    220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    You can use the YASO object to associate files to your application.

    Try doing this within your app (replace .map with your map file extension):

    + Start of frame
    - Associate ".map"
    - To """"+Appdrive$+Appdir$+Appname$+""""+" ""%1"""
    - for type "open
    - with icon "!"

    You'll need to then go to your application properties and untick the "Compress the runtime" box.

    Now, if you put a string in your frame and do:

    + Start of level
    - Change alterable string to CommandLine$

    The string will set to the commandline at the start of the level, and you should receive your application name along with the name of the file that was opened.

    If you have any problems, then I'll make an example file for you.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

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

    Re: Opening a file with double click

    I know this post is a month old, but really helpful with the YASO object to associate files. My question is, how to I extract the resulting file path that is double clicked without getting the actual application path?

    thanks.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

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

    Re: Opening a file with double click

    okay, i figured out a way using the "extract right sub string" expression. I'm guessing that's the best way. Had to use a String object first for some reason. could be me!

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    Yea and whats with all the " things.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    The quotation marks? Two "s in a row within a string are converted to a " in the string - normally they would be parsed as delimiters.

  7. #7
    No Products Registered

    Join Date
    Jul 2006
    Location
    Texas
    Posts
    1,225
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    Why does the directory have to have quotes around it?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

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

    Re: Opening a file with double click

    DavidN,

    where do some of you guys learn all this stuff! I'm a manual type guy, love to read manuals, and I've read the MMF manual and didn't see anything about the double-quote thing... is there a website somewhere that explains all these extra code things?

    thanks for the explanation of the quotes... I just copied and pasted, but love to know why it works the way it works.

  9. #9
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    I picked most of it up by reading this very forum.

  10. #10
    No Products Registered

    Join Date
    Jul 2006
    Location
    www.dingdongstudios.co.nr
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Opening a file with double click

    Quote Originally Posted by aidmm
    okay, i figured out a way using the "extract right sub string" expression. I'm guessing that's the best way. Had to use a String object first for some reason. could be me!
    Where do you get the "extract right sub string" expression?? :confused:

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Mouse double click...
    By Earl in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th July 2012, 05:40 AM
  2. Mouse double click
    By TheOriginator in forum iOS Export Module Version 2.0
    Replies: 0
    Last Post: 1st September 2011, 06:30 AM
  3. How can I double-click on a file and open it?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 8th July 2011, 09:09 AM
  4. Active system box : double click
    By Sphax in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 23rd November 2006, 08:42 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
  •