I was looking for the python Zune (Windows media tool) api when I looked at the COM browser in pythonwin. I found something called ZuneWmdu Type Library (1.0). I used makepy in this lib, it generated a file
9FE20C05-81CE-46D7-9C56-FD97A865BBB8x0x1x0.py
in
python 2.7.3\Lib\site-packages\win32com\gen_py
I do not know what to transfer to
win32com.client.gencache.EnsureDispatch('???')
I tried to call
win32com.client.gencache.EnsureDispatch('9FE20C0581CE46D79C56FD97A865BBB8')
The result in the exception (pywintypes.com_error)
(the x0x1x0 part of the .py file seemed unbound)
I tried the same with
win32com.client.gencache.GetModuleForCLSID('9FE20C05-81CE-46D7-9C56-FD97A865BBB8') and win32com.client.gencache.GetModuleForProgID('9FE20C0581CE46D79C56FD97A865BBB8')
Both return None. I'm stuck here, I need to either find what is called a library (for itunes, you would call:
win32com.client.gencache.EnsureDispatch('iTunes Application')
for example) or how to call a module with a GUID
Or even someone tell me that I'm doing something completely wrong.
source share