User Tag List

Results 1 to 8 of 8

Thread: Scan for a exe file

  1. #1
    Clicker Fusion 2.5iOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scan for a exe file

    Hello i was wondering if there is away that to run my game it would scan your computer to find a .exe file

  2. #2
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you talking about when your game runs it will scan the entire computer for a particular exe file?

  3. #3
    Clicker Fusion 2.5iOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes or just you have to put the exe file in a folder with the game

  4. #4
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can put the exe in the folder with the game. One thing you can do is when the game first starts up. If the file does not exist, then you could bring up a dialog box that asks the user if they'd like to choose where the file is located via a file select dialog box. Once they choose where the exe file is located, then you could save that information to a file. That way, in the future, the game can pull the information from the file.

    If you want to do automated scanning, then that could take some time all depending on how large their hard drive is. Off the top of my head, I'd imagine you'd have to use loops to have the game keep checking each file in the particular directory. However, you'd also have to check to see if there are any subdirectories as well and write to the game's memory to index those and search those as well.

    Personally, I'd have at start of frame the game check for the exe you're wanting. It would pull the file location from a text file (encrypt or obfucate the contents if want to try to prevent tampering). If exe doesn't exist, then ask the use if they'd like to select where the file is located. If they select Yes to do that, then have that trigger the Common Dialog object with the action of Show Open Dialog. Then have the game set the new data in the file with the location they select. To pull the info of the file they selected, you can use the Common Dialog Expression of Get Filename.

  5. #5
    Clicker Fusion 2.5iOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Like what objects do i use to get that ?

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    To see if a file exists, use the File object. You'd so something like:

    At start of frame > Is File Readable (this is a condition from File object). When asked for file, under the expression editor, click on INI++ object and Get Item String. Under the Event Editor, right click that condition you just created and click on Negate. What this will do is that instead of the condition being "If file is readable" it will make it to "if file is not readable."

    Beforehand, you'll have to create a dialog box with the dialog object. For the action of if the file is not readable, you'd set it to open the dialog you created beforehand. Put something like, "Such and such file not readable. Would you like to locate the file?" If they click Yes, then have it open the Open Dialog through the Common Dialog object. Then write that info to the ini file. If no, then you can choose whatever you want. You can have it do nothing. You can have it exit the entire game, which would be under Storyboard Controls > End Application.

  7. #7
    Clicker Fusion 2.5iOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jan 2015
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IT WORKS!!! Thank You

  8. #8
    Clicker Fusion 2.5 DeveloperSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Dec 2009
    Location
    Louisiana, USA
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You're welcome. Glad to hear you got it going.

Similar Threads

  1. Scan through the z axis in arrays?
    By BartekB in forum Fusion 2.5
    Replies: 2
    Last Post: 12th August 2014, 12:29 AM
  2. Scan Object + KeyStore
    By mnovoa in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 14th March 2014, 12:21 PM
  3. Scan Object for Android and iOS
    By Fernando in forum Android Extensions
    Replies: 26
    Last Post: 11th March 2014, 03:54 PM
  4. Scan lines
    By alspal in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 30th March 2010, 08:12 PM
  5. FTP object Scan BUG
    By Wilk in forum Extension Development
    Replies: 1
    Last Post: 27th August 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
  •