Hi: I would like to display different commands on a command bar depending on whether the title on the opened email window ends with (HTML), (Rich Text), or (Plain Text). In Outlook (2003), the type of email is listed at the last part of the window caption eg. <Message Subject> - Message (HTML) or <Message Subject> - Message (Rich Text) or <Message Subject> - Message (Plain Text). Therefore, I believe I need to use either Context or ContextIf.
I have successfully set-up an item to show the bar whenever Outlook is running and the word "message" is in the window caption (which it always is): * Format Context =Outlook,&,* message * However, when I try * HTML * instead of * message *, it does not work. I've also tried * (HTML) but I presume that the brackets are a problem. The bottom line is that I'd like to set-up three buttons - where only one appears on the bar depending on whether the window caption shows HTML, Rich Text or Plain Text. I presume I need to use ContextIf and EndContext around each button. I suspect it's something like: (caption="*(HTML)" && exefilename=="outlook") but I can't figure out the caption= part. Any help is appreciated - including a completely different strategy if I'm heading down the wrong path. Thanks, Dave [Non-text portions of this message have been removed]
