How Do I Force a Single Instance of a Running Program? (Magic xpa 3.x)
There are two basic types of parallel tasks.
In the first type, you might open up one, two, or six different windows simultaneously. For instance, you might use these for different documents you are working on at the same time, or in our example, multiple chat windows. This is the default type of parallel program in Magic xpa.
In the second type, you want to access the same window every time you select it. This would be the case, for example, for a menu of open documents, or our list of open chat windows. This type of parallel program is called a Single instance program.
If you want the program to be a Single instance program, simply:
-
Go to Task properties (Ctrl+P).
-
Select the Advanced tab.
-
Check Single instance.
Now, when you first select this program from a menu or start it from another program, it will open in its own context. But if it is selected again, while it is already running, control will shift to the existing instance of the program rather than creating a new one.
The Online Samples project (program MT10)