Compartilhar via


Making a Speech macro Application Specific

A common question I get is, "Hey, Rob, How do I make a speech macro application specific?" I've posted a couple examples of that embedded in other more complex macros, but here's the simple version.

To make a macro application specific, you'll have to edit the XML by hand. To do that, you can open up the XML file in a text editor, such as NOTEPAD, and add a line that looks like this:

<appIsInForeground processName="IEXPLORE.EXE"/>

So, that would make a simple text insertion macro look like this:

<speechMacros>
  <command>
    <appIsInForeground processName="IEXPLORE.EXE"/>
    <listenFor>Insert my signature</listenFor>
    <insertText>--robch</insertText>
  </command>
</speechMacros>

That's it! Do you have a question about Speech Macros? If so, let us know!