Home > Archive > Tcl > August 2006 > Active Accessibility
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Active Accessibility
|
|
| Emmanuel Frécon 2006-08-22, 8:01 am |
| Hello all,
I will make my question short: Is there anyone who has some code that
interfaces the Microsoft Active Accessibility SDK. I have been looking
around and was not able to find anything relevant. Both Python and Perl
have modules, but my whole project is in Tcl, so I am reluctant to
change language just for the controlling of external applications.
Emmanuel
| |
| Jeff Hobbs 2006-08-22, 7:02 pm |
| Emmanuel Frécon wrote:
> I will make my question short: Is there anyone who has some code that
> interfaces the Microsoft Active Accessibility SDK. I have been looking
> around and was not able to find anything relevant. Both Python and Perl
> have modules, but my whole project is in Tcl, so I am reluctant to
> change language just for the controlling of external applications.
What are you needing to access specifically? Tk has built in most MSAA
1.0 features. MSAA 2.0 is a COM component, so you should be able to
access most of it with tcom or optcl.
--
Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
| |
| Emmanuel Frecon 2006-08-22, 7:02 pm |
| I am looking into MSAA 2.0 in order to control external applications
from my application (I want to open menus and call the commands
associated to menu items, in a way that is compatible with *all* sorts
of menus, i.e. not only with old-style menus such as thoses in
Notepad).
My problem is to actually bootstrap the whole process. Typically, a
(C/C++) application would call a function from oleacc.dll called
ActiveObjectFromWindow(). This functions returns a COM object,
implementing the IAccessible interface. I am not entirely familiar with
COM programming, so I might be just stupid... but I don't know how to
give this object further to either tcom of optcl for calling the
functions of the IAccessible interface that it implements. I am however
able to call the ActiveObjectFromWindow() function, this can easily be
done with, for example, ffidl.
Any help would be appreciated. I have been looking at how pyAA does
things, and it seems to use SWIG to provide low-level bindings and to
build a number of layers on top, layers that hide the complexity of the
SWIG bindings and that are more Python friendly.
Jeff Hobbs wrote:
> Emmanuel Fr=E9con wrote:
>
> What are you needing to access specifically? Tk has built in most MSAA
> 1.0 features. MSAA 2.0 is a COM component, so you should be able to
> access most of it with tcom or optcl.
>=20
> --=20
>=20
> Jeff Hobbs, The Tcl Guy, http://www.activestate.com/
|
|
|
|
|