User Tag List

Results 1 to 5 of 5

Thread: Running my application on shutdown...

  1. #1
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Ribrob's Avatar
    Join Date
    Dec 2007
    Location
    London
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running my application on shutdown...

    Does anyone know how to set up the MMF application i've created to run on shutdown? The application itself simply writes the shutdown time to a text file and then quits.

    Running something on startup is easy enough obviously, i just can't work out how to run something on shutdown.

    Any ideas?

    r.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running my application on shutdown...

    Hmm, there is End of Frame and End of Application in the Storyboard Controls.

    Then there is "Has an Option been selected" in the Special Object.

    And just in case you have a custom way to close your app: first write your text file, then quit

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Posts
    183
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running my application on shutdown...

    I assume you want to have your application start up when the user initiates a shut down... so this will be when your program *isn't* actually running.

    A simple, but by no means perfect workaround could be to product a script for shutting down, (like a bat or .vbs file). When you click it, this will execute your exe and then shutdown the PC.

    Or actually, now I think about it, just run your program; have it write the entry and then kick off a shutdown itself.

    Or… (brain starts up), can’t you detect a shutdown from within MMF2? I’ve never tried this so it’s pure speculation – but if you could do, then this would solve your problem. It would just require your program, (or a ‘watching’ component), to constantly run in the background.

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    www.dingdongstudios.co.nr
    Posts
    505
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running my application on shutdown...

    Im pretty sure when you do a shutdown it will send a windows message thing (lol). So use the WinMessPro object to intercept the action then write the file. This does however mean you will need your program running before hand. Dont ask me what message to intercept because I don't know sorry.

  5. #5
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Ribrob's Avatar
    Join Date
    Dec 2007
    Location
    London
    Posts
    22
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running my application on shutdown...

    Quote Originally Posted by LaraSoft
    I assume you want to have your application start up when the user initiates a shut down... so this will be when your program *isn't* actually running.
    1. Ideally yes, i want to avoid the program running all the time so it's not using system memory / resources.


    Quote Originally Posted by LaraSoft
    A simple, but by no means perfect workaround could be to product a script for shutting down, (like a bat or .vbs file). When you click it, this will execute your exe and then shutdown the PC.
    2. I had originally assumed there was something like the Startup folder on Windows, but apparently not. I don't if there's anyway to run something on shutdown via the registry - i assume this must be possible as some installation programs do things during a restart.


    Quote Originally Posted by LaraSoft
    Or actually, now I think about it, just run your program; have it write the entry and then kick off a shutdown itself.
    3. I'd prefer it catch all shut downs rather than special ones, so that's not ideal.


    Quote Originally Posted by LaraSoft
    Or… (brain starts up), can’t you detect a shutdown from within MMF2? I’ve never tried this so it’s pure speculation – but if you could do, then this would solve your problem. It would just require your program, (or a ‘watching’ component), to constantly run in the background.
    4. Hmmm, that sounds like it could work, though it does mean i wouldn't be able to avoid the points raised in 1.

    Thanks for the info - i'll do some investigating.

    r.

Similar Threads

  1. problem of running a sub application
    By mega21 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 17th January 2013, 07:20 AM
  2. Stop application if another exe isn't running?
    By Xeeko in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 12th August 2012, 12:09 PM
  3. Application looks for running processes?
    By LittleTinyBabyMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 5th June 2012, 05:07 AM
  4. Application running on a network
    By lembi2001 in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 16th July 2008, 12:36 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
  •