One option is to match multiple window captions with a regular expression.
You can't include a comma in the expression because it would confuse mousetrap.
Also, the tilde is needed only once, at the beginning of the caption matcher.
It reverses the meaning of the whole matcher. Try something like:

~x=firefox|indesign

Here's an excerpt from the help file:

to match using a regular expression
Put r=regexp to match the regular expression to the caption. regexp is taken to 
be all the characters 
following the equal sign, including any commas. The caption and regexp are both 
translated to lower 
case before matching. Use x=regex to match the exename to a regular expression.

r=.*special.* - to match windows with caption containing special

You can also use re=regexp to match the caption in a case-sensitive match. In 
this case, the re= must be 
the only matcher in the caption list (r= can be combined with other match types 
using comma to 
separate).

example
- *notepad*,=winword,explorer2,56,nodialog

selects any window containing "notepad" in its caption,

or any window belonging to winword.exe,

or dual pane explorer windows,

or the window with handle number 56.

Those program's config dialogs would not be matched.



Brother Gabriel-Marie wrote:

> Hello all!
> 
> In Mousetrap's config ini file, how do I give multiple applications in
> the exclusion mask?
> I have tried several combinations, but can't get it to work with more 
> than one application.
> Any clues?
> 
> ini=162,160,0,ANY,MWU,,~=firefox~=InDesign,Edit:scroll=*t,1,1,0,0,0,, 
>   
>    
> ini=162,160,0,ANY,MWD,,~=firefox~=InDesign,Edit:scroll=*b,1,1,0,0,0,, 
>  
> 
> - Brother Gabriel-Marie



Reply via email to