I want a script which takes the active selected Mail in Outlook and make an new response mail on this. But I can't find a function to get an active or selected object in pywin32. I just found these:
message.GetLast()
and some similar functions. it works but I need a reference to an active chosen mail.
I would choose a filter like "restrict" to find the Mail automatically but I don't know where to get the information for the filters automatically.
Use
Application.ActiveExplorer().Selectioncollection. Note that it can have zero items or more than one item: