User Tag List

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

Thread: Automatically opening file at the beggining

  1. #1
    No Products Registered

    Join Date
    Oct 2006
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Automatically opening file at the beggining

    I'm making a rtf editor, and I set my application as the default .rtf files in Windows. The problem is, whenever I click any rtf file, it will open my application but it won't load the file automatically.

    How can I do that ?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    You could try using the command line.

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    awesome I got it working, thanks a bunch !

  4. #4
    Clicker Multimedia Fusion 2iOS Export ModuleXNA Export Module
    Asholay's Avatar
    Join Date
    Nov 2008
    Location
    England
    Posts
    360
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    NG2 - how did you manage it? Did you use the command line route as suggested, or did you try something completely different?

  5. #5
    No Products Registered

    Join Date
    Oct 2006
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    It was fairly easy, I retrieved the command line, parsed the string using the " delimiter, then set the 3rd element as the "incoming file" global string. Then when the program launches it checks for the "incoming file" value, if it's equal to "" it doesn't do anything because it means it retrieved nothing, if it's diferent then it will load the file in the "incoming file" value.

    By the way how do I automatically assign my program as the default program for the .rtf extension for example?
    I tried the YASO object but it doesn't appear to work, in Vista at least it doesn't.
    I guess I could do this with the registry object but I don't know how exactly.

  6. #6
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    You can use the Power System Object, which works quite nicely with my level editing program for assigning my extensions to my program.
    Working as fast as I can on Fusion 3

  7. #7
    No Products Registered

    Join Date
    Oct 2006
    Posts
    68
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    Thanks, I tried but still no luck it doesn't seem to be doing anything. I think it might be because of Vista bue I'm not sure.
    Is there any other way ?

  8. #8
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    It should work, I can't get icons to show with it, but when you double click the file does it open your program?
    Working as fast as I can on Fusion 3

  9. #9
    No Products Registered

    Join Date
    Feb 2009
    Location
    CA, USA
    Posts
    110
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    Well... You could do it manually. Right click an .rtf file, select open with, find your program and check "Make Default Program", then hit OK. You may need to browse for the program.

    Also, thanks stephen1980, I had a similar problem at one point and dismissed this as impossible.

  10. #10
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Automatically opening file at the beggining

    DMT that's a bit of a hassle for the user if he's making his own RTF editor...
    Working as fast as I can on Fusion 3

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Problem opening a HTML file with a flash file
    By liliaks in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 15th January 2012, 10:26 AM
  2. Sub-App Error Opening File
    By Gerblegod7 in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 13th August 2007, 02:38 PM
  3. "Error while opening file" with .exe file
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 30th April 2007, 09:14 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
  •