No announcement yet.

AMS multiple instance

  • Filter
  • Time
  • Show
Clear All
new posts

  • AMS multiple instance

    ok , I got a few ideas on how to solve this already, but.....
    What would be the most efficient way to stop a multiple instance of the autorun project?
    -on initialize: check for window titles?
    -somehow detect running processes?

  • #2
    Re: AMS multiple instance

    Yeah I would just check for the window title with an IF statement which triggers an APPLICATION > EXIT action if it finds a running instance of your app. It's easy to do, the results of a WINDOW > GET TITLES is in a tab delimited string which you can then walk through and test values...

    Corey Milner
    Creative Director, Indigo Rose Software


    • #3
      Re: AMS multiple instance

      Another way would be to write a value to the Registry on project initialize, and remove it on project close.

      Use actions to check for the Registry value in the project's On Initialize event...if it already exists, there's another instance running, so just ext the application. If not, then the coast is clear, so write the Registry value and proceed.
      --[[ Indigo Rose Software Developer ]]


      • #4
        Re: AMS multiple instance

        I never thought of this one. Actually with AMS 3 it was not possible.