[python-win32] SMIEngine(COM)

takeshi ikeya takeshi.ikeya at gmail.com
Sun Apr 8 06:32:43 CEST 2012


Anyone help me ?
I really appreciate  win32extension.
I'm trying to use some 3'rd parties COM.

First I tested win32extension installation.

>>> import win32com.client
>>> sh = win32com.client.Dispatch('Shell.Application')
>>> sh.SetTime()

Goes OK.

My windows Registry is

HKEY_CLASS_ROOT
    ...
    Shell.Application
    Shell.Autoplay
    ...
    SMIEngine.SMIHost  ... I want to use this (Animatics's servo)
    SMIEngine.SMIScan

  SMIEngine is explained herer

http://www.animatics.com/products/software/animatics/code-dev-software/smiengine.html

Next step. I tried 'Shell.Autoplay'.
Simply because it's on the next apeerance.

>>> sa = win32com.client.Dispatch('Shell.Autoplay')

Traceback (most recent call last):
  File "<pyshell#5>", line 1, in <module>
    sa = win32com.client.Dispatch('Shell.Autoplay')
  File "D:\Python27\lib\site-packages\win32com\client\__init__.py", line
95, in Dispatch
    dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "D:\Python27\lib\site-packages\win32com\client\dynamic.py", line
108, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "D:\Python27\lib\site-packages\win32com\client\dynamic.py", line 85,
in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147467262,
'\x83C\x83\x93\x83^\x81[\x83t\x83F\x83C\x83X\x82\xaa\x83T\x83|\x81[\x83g\x82\xb3\x82\xea\x82\xc4\x82\xa2\x82\xdc\x82\xb9\x82\xf1',
None, None)
>>>

Dispatch() returns error
And 'SMIEngine.SMIHost' (this is what I'm trying)

>>> smi = win32com.client.Dispatch('SMIEngine.SMIHost')

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in <module>
    smi = win32com.client.Dispatch('SMIEngine.SMIHost')
  File "D:\Python27\lib\site-packages\win32com\client\__init__.py", line
95, in Dispatch
    dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
  File "D:\Python27\lib\site-packages\win32com\client\dynamic.py", line
108, in _GetGoodDispatchAndUserName
    return (_GetGoodDispatch(IDispatch, clsctx), userName)
  File "D:\Python27\lib\site-packages\win32com\client\dynamic.py", line 85,
in _GetGoodDispatch
    IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147467262,
'\x83C\x83\x93\x83^\x81[\x83t\x83F\x83C\x83X\x82\xaa\x83T\x83|\x81[\x83g\x82\xb3\x82\xea\x82\xc4\x82\xa2\x82\xdc\x82\xb9\x82\xf1',
None, None)
>>>

returns same error.

What is the error of Dispatch()?
I really expecting your advice.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20120408/73e167d3/attachment.html>


More information about the python-win32 mailing list