User Tag List

Results 1 to 4 of 4

Thread: Question about 'Execute an external program '

  1. #1
    Clicker Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)
    Slaz's Avatar
    Join Date
    Oct 2010
    Location
    Netherlands
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question about 'Execute an external program '

    Hey there.

    I've got a simple question about TGF2.

    I'm creating a little launcher app in GF2 so that a few different games can be ran through one app, and started playing around with some of the features that would allow for that.

    I'm using the button object to make shortcuts to several apps, each of those apps are located in their own folders on top of the launcher-app's folder.

    Those buttons work, and the external program will run. Yet the problem is, those 'external programs' will save their settings (ini/logs) into the launcher's app folder, instead of the folder the 'external program' is located in!

    Those games won't function correctly if their .ini files are outside of their own .exe folder, and thus can't load/save data.

    Using a fixed pathname doesn't solve it either, I'm using Apppath$+"FOLDER/APP.EXE" for each of the external programs.

    Anybody know how to use the 'external program' event condition, as if that external program would be ran using explorer or such?

  2. #2
    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: Question about 'Execute an external program '

    Have you tried the file object? It has this action too, but it may work a bit differently...
    Working as fast as I can on Fusion 3

  3. #3
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    13,954
    Mentioned
    275 Post(s)
    Tagged
    3 Thread(s)

    Re: Question about 'Execute an external program '

    The File object has an action to change the current directory. Use it before running the external program.

    EDIT: or use set the INI file pathname to Apppath$ + "file.ini" in the external programs, if possible.

  4. #4
    Clicker Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)HTML5 Export Module (Steam)
    Slaz's Avatar
    Join Date
    Oct 2010
    Location
    Netherlands
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Question about 'Execute an external program '

    Quote Originally Posted by LB
    Have you tried the file object? It has this action too, but it may work a bit differently...
    Quote Originally Posted by Yves
    The File object has an action to change the current directory. Use it before running the external program.

    EDIT: or use set the INI file pathname to Apppath$ + "file.ini" in the external programs, if possible.
    Thanks! Both ways described are working fine. I didn't thought of this 'active directory' stuff for some reason.. Now I'm using edited .INI files in the external apps, and the File object instead of the 'Special Conditions' to select directories. those games belong to one pack in the first place, so it's alright that the .INI files are clumped together in the launcher's folder. Thanks a lot!

Similar Threads

  1. Execute External Program Question
    By Jason in forum SWF/Flash Export Module Version 2.0
    Replies: 2
    Last Post: 17th January 2011, 02:09 PM
  2. Execute an external program is only admin?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th March 2010, 10:43 AM
  3. Execute external program and size of command box
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 26th December 2009, 08:43 PM
  4. Execute external program and command line
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 24th December 2009, 01:42 PM
  5. Execute External Program
    By Eclektik in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 20th May 2009, 11:39 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
  •