Re: Application for finding all Windows



Udayan Singh wrote:



Udayan Singh wrote:
>
> Hi,
>
> I want to develop an application where I can get a list of all the
> windows that are open in the GNOME Screen and find any activity being
> performed on any other window on the GUI screen (and not only my
> application) e.g. mouse click on window of another application sends
> me a signal.
>
> Plan to use GNOME as environment. Can I use Metacity (for GNOME) here
> to capture a mouse click occuring on any other application (i.e. any
> other application and not made /implemented by me) ?
>
> Any pointers of how I can go about doing the same ??

Have a look at AT-SPI; it may be overkill, but it allows you to see
pretty much everything that's going on in the desktop.

http://gnome.org/~billh/at-spi-idl/html <http://gnome.org/%7Ebillh/at-spi-idl/html>

There are python bindings for AT-SPI available too, for instance see
gnome svn modules 'orca' for an example of a sophisticated at-spi client.

You can also look in svn module at-spi/test or svn module at-poke to
find smaller, c-based clients.

The "root object" in the AT-SPI hierarchy has a single child
representing the 'desktop', and each of its children in an object of
AT-SPI type "Application".  The children of the Application objects are
Accessible objects corresponding to the toplevel windows on the
desktop.  AT-SPI also provides some device snooping API so that you can
detect mouse and keyboard activity.

/us: thanks for inputs bill. I also figured that I can use the following for API references in case i wanna code in C./

/http://developer.gnome.org/doc/API/2.0/atk/atk.html/

The ATK API won't help you much because it does not export information "out of process".

You can use the api described in at-spi/cspi:

http://developer.gnome.org/doc/API/2.0/at-spi/index.html

Also, here is an architectural overview of the Gnome Accessibility Architecture:

http://www.gnome.org/~billh/ArchitecturalOverview.odp

and implementation details at

http://www.gnome.org/~billh/ApplicationImplementation.odp

best regards,

Bill

/and this one for some inputs on theory../

/http://developer.gnome.org/projects/gap/guide/gad/index.html/

/any other links that might be useful, pls let me know./

tia,

us


regards,

Bill
>
> tia..
> us
> ------------------------------------------------------------------------
>
> _______________________________________________
> wm-spec-list mailing list
> wm-spec-list gnome org
> http://mail.gnome.org/mailman/listinfo/wm-spec-list
> ForwardSourceID:NT00014E6E

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you


------------------------------------------------------------------------

_______________________________________________
wm-spec-list mailing list
wm-spec-list gnome org
http://mail.gnome.org/mailman/listinfo/wm-spec-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]