Application Launcher Add-in

Why?

A few month ago I submitted a macro for Visual Studio  that allows a developer to launch an application from within the code. See Application Launcher. The macro was designed for VS 5.0 and it ran very well, at least in my computer :-). I was contacted by a few people complaining they could not make the macro run. I later found out the reason it ran in my computer so well was because I had Microsoft's Windows Scripting Host installed. After upgrading to Visual Studio 6.0 the macro stop working. Apparently Visual Studio 6.0 does not support the CreateObject(...) function, even after installing Windows Scripting Host.   Since I have learned to depend on this macro for my in source documentation, I decided to create an add-in to provide the functionality of the application launcher macro.

How It Works.

 I decided to take a more simplistic approach for the Application Launcher add-in. Instead of trying to figure out what application to call depending on the file extension as the macro did. I have delegated that responsibility to the operating system and have limited the functionality of the macro to pick up the link from the source code and pass it to ShellExcecute(...). The code is very simple and everything is done in one function. I have reused some of the code for string manipulation posted by Zafir Anjum . Having said that, this is a list of some of the links you can include in your source code .

Link Application
 [d:\projects\development\documentation\model.mdl] Visual Modeler
 [d:\projects\development\documentation\vision.doc] MS Word
 [http://www.codeguru.com] Default Browser
 Omar Francisco [mailto:email@company.com] Email Client
 [d:\projects\development\prototype\prototype.vbp] Visual Basic
 [d:\projects\development\installation\myapplication.ipr] Install Shield
 [d:\projects\development\test\ptest.VBS] Windows Shell
 [REPOSITORY:D:\Apps\Microsoft Visual Studio\Common\Tools\VCM\VCM.VBD] MS Repository
 [SOURCE SAFE:X\VSS\srcsafe.ini] Source Safe
 [news://msnews.microsoft.com] News Group Reader
[MSDN:mk@MSITStore:\\mycpu\mydir\MSDN\period97.chm::/HTML/cpp1212.htm] MSDN Link

 

 

 

 

 

 

 

 

Anything you can run from a command line, could be run from within your code. This add-in has the potential to make your life easier both during development and during the maintenance of your code.

The add-in also supports custom tags that force a specific application to be called when a custom tag is found.  This feature is useful to call applications like Source Safe that take an INI file as a parameter.  I have included custom links  for MSDN articles, Source Safe and  Microsoft repository.  The bold items in the previous list represent custom tags.

The custom tag file goes by the name AppLaunch.ini and it is expected to be found in the same directory where the add-in is stored.  It is read when Visual Studio starts up and the (tag, application) pair is stored in a vector.  Due to the almost static nature of this file, I did not see a need to provide a mechanism to refresh the file without closing Visual Studio.  The format of the file is self-explanatory. 

Case insensitive tag; application

See AppLauch.ini for more information.

 How to Install and Run

Compile the enclosed project and register the AppLaunch.dll.  Don't forget to copy the AppLaunch.ini file to the same directory where the AppLaunch.dll is located. Then you must associate the add-in with a shortcut key (See my comments about shortcut keys). Once that is done just create a link to something and enclose it in brackets [], i.e. [http://www.codeguru.com]. Put the cursor anywhere within the pair of brackets and press the shortcut key associated with the add-in. The application associated with the link will be started.

About Shortcut Keys

As I added more and more add-ins and macros to Visual Studio and other applications, it became almost impossible to remember all these keystrokes. To the rescue came PC-DASH from Saitek. It is a programmable keypad that allows me to bind add-ins or macros to a single keystroke. It also let me design my own labels for every key. More information about this product could be found at http://www.saitekusa.com/products/other/pcdash.html. I have no affiliation with this company. If you have questions about how I am using this device in my programming environment, I will be happy to answer them.

That's all folks.

 

Download compiled add-in - 18 KB

Download source - 23 KB



Comments

  • fit flops

    Posted by Joitlerearoff on 07/07/2013 10:24am

    rdnvf ash shoes auajr ash boots ppbfd ash shoes sale epewz http://ashshoes.astrologychick.org/ epitk scarpe hogan dcwdw outlet hogan dupnp hogan rebel donna hzicv hogan spaccio tbocg http://hoganscarpe.kachile.org/ ghppo lisseur ghd fowch ghd lisseur dgdyw lisseur ghd styler tdakz ghd video nmnra http://lisseurghd.whaboo.org/ omrvy planchas ghd rutkn planchas ghd baratas kogna plancha ghd precio zoeur ghd planchas ofertas aboht http://planchasghd.astrologychick.org/ rwiof longchamp bags aciqk longchamp outlet mhims longchamp purse yjkhx longchamp totes tewfu http://longchampbags.toonfx.org/ gczei prada borse gmvrq prada outlet flubw punks wear prada vlehb prada saldi rdmes http://pradascarpeoutlet.info/ sqmon isabel marant sneakers hspqn isabel marant shoes uftol isabel marant dicker vrovf http://isabelmarant.toonfx.org/

    Reply
  • fit flops

    Posted by Joitlerearoff on 06/17/2013 10:49pm

    omdqc karen millen dresses lgyfc karen millen dress dldpt karen millen usa zijks karen millen outlet online duina http://karenmillendresses.10six.org/ togal insanity day 50 lfxhs insanity 13 video futwg cheapest insanity workout elyik get insanity workout youtube wdcfj insanity home workout dvd jowem fitflop ykush fitflop singapore vdimd fitflop sale singapore cooxd fitflop online buying bmxmj http://fitflop.smchillel.org/ adpvi nike heels xppxi mens nike shoes hiqry nike shoes wholesale botvk http://nikeheel.smchillel.org/ sfclx jillian michaels lzqyw jillian michaels 30 day shred uxnga jillian michaels yoga meltdown uiiqh http://fitness.kachile.org/ smeaw louboutin pas cher xfinp chaussures louboutin pas cher sbmff louboutin shoes uwbel http://louboutinpascher.smchillel.org/ hmami sac vanessa bruno zfwil vanessa bruno sac wncjz sac cabas vanessa bruno hxqkd http://sacvanessabruno.10six.org/

    Reply
  • burberry handbags

    Posted by Joitlerearoff on 06/09/2013 10:11am

    tvydl pandora bracelet znqtx pandora charm bracelets zjdga pandora wedding charms ubgbh http://pandora.msvotes.org/ gcpvj louboutin pas cher bnzbc chaussures louboutin hrpyv christian louboutin homme vjqaj http://louboutinpascher.smchillel.org/ ugort burberry outlet zuvan burberry diaper bag ddbcp burberry outlets pjmbi http://burberry.msvotes.org/ dvopb isabel marant sneakers nqgyx isabel marant wedge sneakers nhcio isabel marant black sneakers vxlme http://isabelmarant.10six.org/ jkjbm louis vuitton bag uclla louis vuitton handbags outlet uhbyb louis vuitton bags for sale rrvsb http://lv.smchillel.org/ npdky hunter boots qpszh hunter rain boots ipvoy hunter boots toronto tagji http://hunterrainboots.msvotes.org/ cgnfq nike heels vzamy nike mens shoes tsjiw discounted nike shoes nvcyq http://nikeheel.smchillel.org/

    Reply
  • insanity dvd

    Posted by Joitlerearoff on 04/20/2013 07:06am

    ubfof karen millen dresses jnmci karen millen dress xzqxx karen millen outlet store fmpdl http://karenmillenoutlet-sale.info/ gopzq insanity workout edvcx insanity workout for sale bjkgf insanity workout dvds nwxhr http://beachbodydvdonsales.info/

    Reply
  • Lowest priced GHD Stylers And Locks Clothes dryer Sizzling Sales Australia wide

    Posted by on 03/13/2013 12:11pm

    aDxwrjGguw ghd hair straightener oNkanzUyed ghd flat iron uTrsneFdcl ghd iv styler eLktzvJvqh http://www.cheapghdstraightenerau.com/ghd-scarlet-collection-c-238.html cHcrflHlfm ghd nZchafExkd ghd hair straighteners fYirgaBdap ghd online bOiwwuIttl http://www.cheapghdstraightenerau.com/ghd-peacock-2013-c-203.html

    Reply
  • Inexpensive GHD Straighteners cheapest Great britain sales rates

    Posted by on 03/11/2013 12:48am

    nWwvaoFsac ghd hair straighteners hFepoyEqss cheap ghd straighteners yFrzqjZbub ghd hair wAfjkfMmju http://cheap-ghd-sale.moonfruit.com/ dZwmwmPwjx ghd straighteners oDdlntJdet cheap ghd bLyxfdQzek ghd hair mUlpnoYqss http://cheap-ghd-sale.moonfruit.com/ gAhjgcDtxu ghd straighteners mXbjhzVisg cheap ghd straighteners uWpxvuAqkx ghd s wUxflsQylt http://cheap-ghd-sale.moonfruit.com/

    Reply
  • cheap ghd straighteners

    Posted by Joitlerearoff on 03/09/2013 08:21am

    gryqn ghd australia slggx cheap ghd straighteners ucnxt ghd cheap bsger http://auhairstraighteners.info/ mhrvx isabel marant yacow isabel marant sneakers eqial isabel marant shoes dnmla http://scarpeisabelmarant-it.info/ izzhd ghd straighteners iscfe ghd straightener fvspr ghd sale uk mgczo http://besthairsalonuk.info/ wgbnj isabel marant lstke sneakers isabel marant waivo isabel marant shop online ssarn http://botasisabelmarant.info/

    Reply
  • tiffany bracelets

    Posted by Joitlerearoff on 02/27/2013 11:11pm

    omtbs isabel marant sneakers foiut isabel marant boots rdeqe isabel marant bekket sneakers cysoq http://isabelmarantonlinesale.webs.com/ xjgdt isabel marant sneakers cmxdm isabel marant dicker boots eykcg isabel marant sneakers sale cvxbt http://isabelmarantsneakersoutletsale.webs.com/ ykxwv fitflop singapore fjozb fitflops nuzyn http://fitflopssgcheapsale.webs.com/ qgjqk isabel marant sneakers adorx isabel marant shoes rxrbk isabel marant sale wnruc http://isabelmarantsneakersonlinesale.webs.com/ ozlfw pandora rings bdxhf pandora ring zqtia http://pandorajewelleryusa.webs.com/

    Reply
  • insanity workout

    Posted by Joitlerearoff on 02/16/2013 06:16pm

    dohzj insanity workout vcnlb insanity workout australia

    Reply
  • associate the add-in with a shortcut key

    Posted by Legacy on 10/06/2003 12:00am

    Originally posted by: Sandeep

    I do not understand the term "associate the add-in with a shortcut key".
    
    

    How can i add this macro and can associate macro to browser.

    Reply
  • Loading, Please Wait ...

Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

  • It's not unusual for a company to use a variety of formal and informal file-sharing methods. Many methods are fraught with significant operational, financial, and legal risks in addition to other potentially negative business consequences. Strategic managed file transfer (MFT) software and services help connect the business "dots" between the various ad hoc and more systematic ways that files are moved. Read this white paper to learn how the right MFT solution, can bring order, structure, and, importantly, …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds