--- In [email protected], "david.sotropa" <david.sotr...@...> wrote:
>
>
> Hi:
>
> I would like to display different commands on a command bar depending on
> whether the title on the opened email window ends
Is the window you are referring to the main email window or a child window just
for the open email. PowerPro caption matching works with the caption on the
main window.
>
> Any help is appreciated - including a completely different strategy if
If it is a child window. It is possible to write a scripted function called
(say) scanfor.txt which looks at the child windows and returns (say) "html",
"rtf", etc.; then use
format contextif
(.scanfor == "html)
etc.
The
local hans = win.childhandlelist ("=outlook", "c=<messageclass>")
should be a help, where you need to replace <messageclass> by window class for
child windows used for messages. Then look at each handle in hans with
win.caption for window text ending appropriate st4ring. If there are
multiple open messages of different types, it may be tricky to do.