[python-win32] makepy or genpy issue: no get_accChildCount?

Xin Zhao usfree74 at gmail.com
Thu Jan 28 00:19:49 CET 2010


I am trying to use pywin32 to do program automation. Basically, I need to
get an IAccessible object and call functions on it.

Here is what I did:

x = pythoncom.AccessibleObjectFromWindow(3803742, 0,
(3803742 is the HWND of an internet explorer window)

Then I do:
z = win32com.client.gencache.EnsureDispatch(x)

Now "z" is an IAccessiable object:
instance at 0x15279168

But when I did "dir(z)", I only see:
['CLSID', 'GetaccDefaultAction', 'GetaccDescription', 'GetaccHelp',
'GetaccHelpTopic', 'GetaccKeyboardShortcut', 'Getacc
Name', 'GetaccRole', 'GetaccState', 'GetaccValue', 'SetaccName',
'SetaccValue', '_ApplyTypes_', '__doc__', '__eq__', '__
getattr__', '__init__', '__module__', '__ne__', '__repr__', '__setattr__',
'_get_good_object_', '_get_good_single_object
_', '_oleobj_', '_prop_map_get_', '_prop_map_put_', 'accChild',
'accDoDefaultAction', 'accHitTest', 'accLocation', 'accN
avigate', 'accSelect', 'coclass_clsid']

Although MSDN lists function *get_accChildCount* as a function IAccessible
must support,
I don't see it in the method list of "z". Why?

Please help! Thanks a lot!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20100127/9f400d10/attachment-0001.htm>

More information about the python-win32 mailing list