passing an argument

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • ZenLunatic
    Forum Member
    • May 2005
    • 30

    passing an argument

    I'm trying to pass an argument to flashplayer using file.run. here's what I have:

    Code:
    File.Run("AutoPlay\\SAFlashPlayer.exe", "AutoPlay\\finished\\IPM - Overview\\playershell.swf", "", SW_MAXIMIZE, false);
    The application launches, but it doesn't load the file. Any ideas?

    PS: My previous user registration, Pharmakon, is gone! What happened?!
  • Desmond
    Indigo Rose Staff Member
    • Jul 2003
    • 710

    #2
    I'd tack on a _SourceFolder to the beginning of the passed arguement. That way you're passing a complete path. Though I haven't tried it to see if it works.

    Code:
    File.Run("AutoPlay\\SAFlashPlayer.exe", _SourceFolder .. "\\AutoPlay\\finished\\IPM - Overview\\playershell.swf", "", SW_MAXIMIZE, false);
    Let me know if that does what you want it to.

    Comment

    • ZenLunatic
      Forum Member
      • May 2005
      • 30

      #3
      sweeeeeeet.. that worked!

      Comment

      • Intrigued
        Indigo Rose Customer
        • Dec 2003
        • 6138

        #4
        I bow to Desmond, the almighty code god!

        *bows, falls, rolls into door*



        :yes
        Last edited by Intrigued; 05-11-2005, 12:31 PM.
        Intrigued

        Comment

        • Desmond
          Indigo Rose Staff Member
          • Jul 2003
          • 710

          #5
          Yes! I'm a god! Whoo hooo!!!

          Comment

          • Corey
            Indigo Rose Staff Alumni
            • Aug 2002
            • 9745

            #6
            Yes! I'm a god! Whoo hooo!!!
            Gaye Delorme ("It's Hard to be Humble", "Earache my Eye", etc.) used to introduce his Conga drummer "Enrique" at shows as "The Polynesian Love God". Enrique loved that, he beamed with pride every single time Gaye said it. He would always release a quick bongo flurry to punctuate it and then glance out wistfully at any female audience members within glancing range. :yes

            Comment

            • Intrigued
              Indigo Rose Customer
              • Dec 2003
              • 6138

              #7
              Originally posted by Desmond
              Yes! I'm a god! Whoo hooo!!!
              Ha! Ha! Seriously.

              I had zero luck finding out how to pass arguments... then I read it's because of security that there are no arguments that can be passed to that particular .exe.

              But then... here comes Desmond with a "from the slow lane in heavy traffic, who then cuts over into the fast lane and guns it" right pass that obstacle!

              :yes
              Intrigued

              Comment

              Working...
              X