User Tag List

Results 1 to 9 of 9

Thread: Help using [FILE] object!

  1. #1
    No Products Registered

    Join Date
    Apr 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help using [FILE] object!

    Hello,

    I'm trying to detect some installed codecs with MF2, but first I need to check for some directories.

    I'm using %PROGRAMFILES% and %PROGRAMFILES(X86)% in the [FILE] object but nothing happens. :S
    How can I load the contents of this variables first or, how to use them properly in MF2? :confused:

    Thanks a lot.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    One way is to use the OS object (Dev only).

    It can get the data with the Environment Variable expression:
    for example [color:#000099]GetEnvVar$( "OS", "PROGRAMFILES")[/color] --> C:\Program Files


    You can get various system paths with the YASO object you can download
    on the right side under Quick File Links here in the Forum.
    It's inside the Bonus Pack 1.

  3. #3
    No Products Registered

    Join Date
    Apr 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    Quote Originally Posted by Gustav
    One way is to use the OS object (Dev only).

    It can get the data with the Environment Variable expression:
    for example [color:#000099]GetEnvVar$( "OS", "PROGRAMFILES")[/color] --> C:\Program Files


    You can get various system paths with the YASO object you can download
    on the right side under Quick File Links here in the Forum.
    It's inside the Bonus Pack 1.


    Oh. ok.. I'll try.

    For now... How did you show a variable contents in screen with
    some "dynamic" text or so?

    I would like to put some pushbutton (or start frame event) to show in screen the actual path for program files, and if program files (x86) is present.


    Thanks a lot.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    There are some different objects to show text,
    e.g. the String object:

    Change alterable string > "path: " + GetEnvVar$( "OS", "PROGRAMFILES")

    will result:

    path: C:\Program Files

  5. #5
    No Products Registered

    Join Date
    Apr 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    oh Thanks.
    Sorry, and how I make that to work?

    (I'm noob at MF2dev, I just switch from matchware mediator)

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    Quote Originally Posted by HelliXSystems
    Sorry, and how I make that to work?
    What exactly is your problem?

  7. #7
    No Products Registered

    Join Date
    Apr 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    Quote Originally Posted by Gustav
    There are some different objects to show text,
    e.g. the String object:

    Change alterable string > "path: " + GetEnvVar$( "OS", "PROGRAMFILES")

    will result:

    path: C:\Program Files
    I always get syntax error.
    [Screenshot]

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUnicode Add-onInstall Creator

    Join Date
    Jul 2006
    Posts
    1,018
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    Correctly. You have to create an OS object in the Frame Editor.

    If you want to use the OS object inside a Behavior of an object you have to "connect" it by clicking the Import new objects icon in Behavior Event Editor beside the other objects icons. This Icon only appears if a non-connected object is available in the Frame Editor.

  9. #9
    No Products Registered

    Join Date
    Apr 2010
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help using [FILE] object!

    OH !! OK !!

    Thanks! Now it is working! :P

Similar Threads

  1. Create folder with File object on Program File
    By Vantales in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 13th April 2013, 11:13 AM
  2. File Object - Mass/Mulitple File Rename
    By Yelnek in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th January 2013, 09:44 PM
  3. Issue with loading file from File Object.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 1st April 2012, 11:34 AM
  4. File size problem with regular file object??
    By TrojanWolf in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 25th April 2010, 10:39 PM
  5. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 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
  •