Hey, 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, pythoncom.IID_IDispatch) (3803742 is the HWND of an internet explorer window) Then I do: z = win32com.client.gencache.EnsureDispatch(x) Now "z" is an IAccessiable object: win32com.gen_py.1EA4DBF0-3C3B-11CF-810C-00AA00389B71x0x1x1.IAccessible.IAccessible 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! xin
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32