Click here to Skip to main content
Click here to Skip to main content

Visual Studio Addin to run Macros

By , 18 Oct 2006
Rate this:
Please Sign up or sign in to vote.

Sample Image - maximum width is 600 pixels

Introduction

Macros Manager is a Visual Studio .NET 2003 Addin that launch specified macros from a Windows Form. Having been creating and using many macros in Visual Studio .NET 2003, I was looking for a way to call them easily.

I first added menus with a Shortcut on my macros into Visual Studio, but many times the design layout disappeared. Then I had no choice to find another way to call my macros quickly. That's why I have made Macros Manager.

Actually, it just execute macros, but you can improve it to manage macros, depending on your needs. 

Using the code

Macros Manager is an addin. You should be familiar to addins before install or improve Macros Manager. If you want to use it, simply install it with the demo project.

After installing the addin, you will have a new menu in the Visual Studio .NET 2003 tool's menu:

Sample Image - maximum width is 600 pixels

 

Macros Manager is simple to use. Behind it there is a mapping file, written in XML, that let you configure which macro you want to launch by clicking on a node in the treeview in the form. Obviously, the macro must exist.

You can also create group nodes if you want to create a structure for your macros.  There is no level limitation.

Example of the XML file:

<?xml version="1.0" encoding="iso-8859-1" ?>
<Root>
   <Node1 ImageIndex = "0" Name="Macros group 1">
      <Macro ImageIndex = "1" Name="Show Hello 1" 
             MacroStrongName="Macros.MyMacros.Functions.Hello1" />
      <Macro ImageIndex = "1" Name="Show hello 2" 
             MacroStrongName="Macros.MyMacros.Functions.Hello1" />
   </Node1>
   <Node1 ImageIndex = "0" Name="Macro group 2">
      <Macro ImageIndex = "1" Name="Show hello 3" 
             MacroStrongName="Macros.MyMacros.Functions.Hello1" />
   </Node1>
</Root>

Points of Interest

Another way to manage macros in Visual Studio, without changing the IDE layout.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

joujoukinder

France France
No Biography provided

Comments and Discussions

 
GeneralMacro Explorer PinmemberKevin McFarlane18-Oct-06 10:35 
GeneralRe: Macro Explorer PinmemberS P S18-Oct-06 17:08 
GeneralRe: Macro Explorer Pinmemberjoujoukinder19-Oct-06 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 18 Oct 2006
Article Copyright 2006 by joujoukinder
Everything else Copyright © CodeProject, 1999-2014
Terms of Use
Layout: fixed | fluid