EnvironmentEvents Event thrown after a tool has finished executing

Does anyone know if there is an event to handle in the EnvironmentEvents class after an external tool has finished executing I would like to search the output window after it has finished being updated by an external tool.

Answer this question

EnvironmentEvents Event thrown after a tool has finished executing

  • Anni

    Do you mean the Output Window of Visual Studio If so, take a look at the EnvDTE.OutputWindowEvents.PaneUpdated event. If not, it is going to be a difficult. If it is your own external tool maybe you can convert it to an add-in or something like that.

    --
    Best regards,
    Carlos J. Quintero
    MZ-Tools: Productivity add-ins for Visual Studio
    You can code, design and document much faster:
    http://www.mztools.com



  • Duke Voldemar

    does

    ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.KB.v10.en/enu_kbvcsharpnetkb/vcsharpnetkb/810230.htm

    help



  • ItsJustJake

    I did try that. I captured the event and then searched the output window for text that indicated the job had finished. However, intermittenly the macro would cause VS to hang so I was looking for something else. Thanks for your response.
  • Tomas Galvez

    thats a link for the VS help collection.

  • pradeepz

    There are no events fired from the automation model (nor any that I know of in the VSIP interfaces) that indicate a tool has finished executing. You could capture the command events, and the notice the before event is fired, but because tools run async the after command event will fire long before the tool finishes running. After all, some tools (like OLE COM object viewer) could finish running after the Visual Studio process has completed running.

    The only possible thing that you could do is to create your own commands is to use the IVsLaunchPad interface from the VS SDK and watch for the appropriate return values to know when the tool has finished (if you know that it will finish). You will need to write your own commands and call the methods of this interface (which can be done from either an Add-in or package), but there is nothing that we support out of the box for doing this.

    Craig



  • rsavas

    I copied the address into my browser and got

    The page cannot be displayed

    ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.KB.v10.en/enu_kbvcsharpnetkb/vcsharpnetkb/810230.htm


  • Boomstik

    Thanks, I was looking for an event and I thought it might be possible because I saw that when tools are running the Tools menu item has the text (stop) inserted before the item text. Thanks for your response.
  • EnvironmentEvents Event thrown after a tool has finished executing