Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #73476

comtypes

Newsgroups comp.lang.python
Date 2014-06-21 00:08 -0700
Message-ID <7b0712bf-68b0-4183-860d-2a39d22b62f4@googlegroups.com> (permalink)
Subject comtypes
From peter.balazovic@emspin.com

Show all headers | View raw


Dears,

I am not sure I am at right place here. Now I've started working with comtypes 1.1.0 package within python 2.7.6.1. I have ActiveX COM object I want access and work with it.

I do following 
>> from comtypes.client import CreateObject
>> fm = CreateObject("MCB.PCM")
>> dwt = fm.ReadVariable("dwt")
>> print dwt
(<comtypes.automation.LP_tagVARIANT object at 0x05A8E1C0>, <comtypes.automation.LP_tagVARIANT object at 0x05A8E210>, <comtypes.automation.LP_tagVARIANT object at 0x05A8E260>, True)
 
by using print gives me return values. I want to access return data (array)and  variable. How can I correctly handle it?

I would you be very thankful for your help.

Thank you
Peter

ReadVariable = [Variant, Variant, Variant, Variant] ReadVariable(handle, Variant)

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

comtypes peter.balazovic@emspin.com - 2014-06-21 00:08 -0700
  Re: comtypes John Gordon <gordon@panix.com> - 2014-06-21 16:34 +0000
    Re: comtypes peter.balazovic@emspin.com - 2014-06-21 10:09 -0700
  Re: comtypes Thomas Heller <theller@ctypes.org> - 2014-06-21 20:17 +0200
    Re: comtypes peter.balazovic@emspin.com - 2014-06-21 12:08 -0700

csiph-web