westor,

1. Correctly, your idea is good only for make an identifier to tell mirc how many instances are currently running, but you said that this identifier like $proc must collect info by the name of the process and is not correctly. Why? Because someone can make to directories of mirc, one in: C:\mIRC and another in C:\mIRCs and to run them simultaneously. So correctly will be that the identifier will look at this process of mirc where is running from.

2. Second, you didn't understand my suggestion. I mentioned that to introduce an option to allow or disallow multiple instances. If somebody will start mirc and has the option activated to allow only one instance, mirc will never start the second process, but will activate the main window of mirc of this process.