5,427,303 members and growing! (20,802 online)
Email Password   helpLost your password?
General Programming » Macros and Add-ins » VS.NET Addins     Intermediate

Visual Studio Addin to run Macros

By joujoukinder

A Visual Studio add-in to simplify running your macros
C#, Windows, .NET 1.1, .NETVisual Studio, VS.NET2003, Dev

Posted: 18 Oct 2006
Updated: 18 Oct 2006
Views: 8,939
Bookmarked: 2 times
Announcements
Want a new Job?



Search    
Advanced Search
Sitemap
1 vote for this Article.
Popularity: 0.00 Rating: 4.00 out of 5
0 votes, 0.0%
1
0 votes, 0.0%
2
0 votes, 0.0%
3
1 vote, 100.0%
4
0 votes, 0.0%
5

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

joujoukinder



Location: France France

Other popular Macros and Add-ins articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 3 of 3 (Total in Forum: 3) (Refresh)FirstPrevNext
Subject  Author Date 
GeneralMacro ExplorermemberKevin McFarlane11:35 18 Oct '06  
GeneralRe: Macro ExplorermemberS P S18:08 18 Oct '06  
GeneralRe: Macro Explorermemberjoujoukinder9:55 19 Oct '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 18 Oct 2006
Editor: Chris Maunder
Copyright 2006 by joujoukinder
Everything else Copyright © CodeProject, 1999-2008
Web16 | Advertise on the Code Project