Click here to Skip to main content
Licence CPOL
First Posted 18 Oct 2006
Views 19,103
Downloads 186
Bookmarked 6 times

Visual Studio Addin to run Macros

By joujoukinder | 18 Oct 2006
A Visual Studio add-in to simplify running your macros

1

2

3
1 vote, 100.0%
4

5
4.00/5 - 1 vote
μ 4.00, σa 5.00 [?]

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

Member


Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralMacro Explorer PinmemberKevin McFarlane11:35 18 Oct '06  
GeneralRe: Macro Explorer PinmemberS P S18:08 18 Oct '06  
GeneralRe: Macro Explorer Pinmemberjoujoukinder9:55 19 Oct '06  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120210.1 | Last Updated 18 Oct 2006
Article Copyright 2006 by joujoukinder
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid