[Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop
Benoit Minisini
gambas at ...1...
Wed Jan 23 19:49:14 CET 2008
On mercredi 23 janvier 2008, Khos wrote:
> Hi again,
> I am still struggling to do this, I have started searching for
> shell/terminal commands I could try use because e.g. using shell xwininfo
> will allow me to hover the mouse over a window, then I click and it will
> give some info of that window I clicked on...but how can I do this without
> having to click on the window? I just want to be able to hover over any
> window and it should give me the windows info (size, is it he active win
> etc etc). Any ideas? desktop,find won't so this I think.. could you lok
> into this for me and provide some guidance?
>
> Thanks
> Kim
>
This is not possible directly in Gambas. Having information on top-level
windows is done with low-level X11 libraries call and with the NET protocol
as specified on freedesktop.org web site.
xwininfo will gives you all X11 information about a specified window, but you
won't get the information of the NET protocol.
I plan to implement the NET protocol in a component by using the corresponding
class of the KDE libraries. This component will depend on QT, and will allow
you to get a lot of information from the window manager. But I won't do it
now!
Regards,
--
Benoit Minisini
More information about the User
mailing list