User Tag List

Results 1 to 2 of 2

Thread: command line parsing problem

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleSWF Export Module

    Join Date
    Sep 2006
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    command line parsing problem

    hello,
    i tried to convert a mmf1.5-program, which was assigned to the *.wav extension and played a sample
    by double clicking a wav-file in explorer.
    this was done with the command line extension and a "get element x of command line" condition:
    the second element was the *.wav-path and could easily played by one line in the event editor.

    problem in mmf2:
    the inbuild command line does support only predefined options like /a, /b, not a unknown whole path of a file.
    so its impossible to get a path without a lot of string parsing.

    is there a workaround or a new command line extension for mmf2?

    thanks,
    quinto

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: command line parsing problem

    use the special object and get the command line from that... what you want is the string without the app path, so (you will need to work it out for MMF): mid(commandline, len(appdrive$ + appdir$ + appname$) + 5, len(commandline) - len(appdrive$ + appdir$ + appname$) + 5))
    you might need to change the 5 to 3 if the app is not double quoted, eg. C:\app.exe instead of "C:\app.exe" or increade it to remove the space, etc.

Similar Threads

  1. MMF command line help?
    By FlameEX in forum Multimedia Fusion 2 - Technical Support
    Replies: 29
    Last Post: 18th January 2011, 05:43 PM
  2. Command Line
    By dragonguy in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd December 2008, 04:48 PM
  3. Command line app
    By DJFuego in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 14th October 2008, 12:16 PM
  4. Is it possible with Command Line?
    By KICadm in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th August 2008, 05:00 PM
  5. Run Exe with command line
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 31st March 2007, 03:32 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
  •