View Full Version : AMS multiple instance
Option_Explicit
02-28-2003, 09:34 PM
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?
Corey
02-28-2003, 10:58 PM
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 (http://www.indigorose.com)
Lorne
03-03-2003, 09:05 AM
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.
pencil
05-25-2003, 04:59 AM
I never thought of this one. Actually with AMS 3 it was not possible.
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.