[python-win32] Using python to create outlook rules - comtypes (working) vs. pywin32 (not working)

Tim Roberts timr at probo.com
Fri Oct 30 13:33:26 EDT 2020


Caio Kauffmann wrote:
>
> I am a hobby programmer and after days trying to figure out what I am 
> doing wrong, I still can’t finish a project because of the issue I 
> listed in this topic in stack overflow: 
> https://stackoverflow.com/questions/64594689/python-comtypes-working-vs-pywin32-not-working-using-python-to-create-o
>
This is not Visual Basic.  The following statement does nothing in Python:

|oFromCondition.Recipients.ResolveAll|

If you want the method to be called, you have to call it:

|oFromCondition.Recipients.ResolveAll()|

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3389 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://mail.python.org/pipermail/python-win32/attachments/20201030/b157eafe/attachment.bin>


More information about the python-win32 mailing list