I regularly have a large number of Visual Studio 2003 solutions open at the same time. I'd like to create a macro to switch to a particular solution, eg based on the name of the solution loaded. The problem I have is that the window title for Visual Studio follows the currently selected sub-project within the solution and as a result I can't get QM to activate on a specific solution's window. Any ideas?
How about this for a workaround: Is there any way of detecting the process id when a specified application (with particular startup parameters, or from a specified windows shortcut .lnk file) is launched and then activating the process main window based on process id within a macro?
Visual Studio can be automated using COM.
Import the attached file.
Call function VS_ActivateSolution from your macro.
Also there are functions to open a file/line, and to display a string in VS output.
I'm guessing I need to get the latest version of QM as when the VS_ActivateSolution fn is executed the identifiers 'empty' and 'EnvDTE.Solution' are giving the errors 'unknown identifier'.
I used Macro1558 to get the command line of a certain process, namely msimn.exe (OE) by clicking on an appropriate file (.eml) on windows explorer, successfully. Therefore I got through this command line the file path which it initiated this process. In the case that I need to open another .eml file simultaneously, is there any way to obtain its file path (not file name) as well? Many thanks.