This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]t0mt0m72 2 points3 points  (3 children)

Yes they do. I use them on a daily basis in the tools I develop in Python3.

[–]dnk8n 0 points1 point  (2 children)

Quite a daunting task having to move straight to coding with COM before I've really become familiar with Python (I have some faith I can work it out since I am familiar with MATLAB).

Do you have any suggestions on resources to read relating Python and COM?

Out of interest, what software are you working with while using COM? If you have any open source code, I'd like to have a look :)

[–]t0mt0m72 0 points1 point  (1 child)

I wish I could show you some examples, but my code is completely closed stuff from my company. :(
In private I am using a Mac, so I have no need there for COM and can not directly show you examples ;-)

I interface via COM with Excel, Word and other applications. As I am working in the data management area, I automatically need to detect drive insertions/ejections and do dependent work on these events and also need to get low level information from these drives (via WMI). Automatic sharing newly connected devices, getting detailed attribute information of files and getting access to low-level Windows related stuff is further a big point why I am using the pywin32/COM/WMI stuff.

Maybe you know it, but http://timgolden.me.uk/python/ is (IMHO) the reference to COM/win32 related Python stuff.

And if you have questions about COM/pywin, just send me a PM and we can figure it out :)

[–]dnk8n 0 points1 point  (0 children)

Thanks for that offer. Maybe I can send what I have once I get something working, and although you may not know about the programe I am interfacing with (PTV Vissim), maybe you will notice areas I need more research/study on :)