[Gambas-user] New to Gambas - coding question how to find the active window on an Ubuntu 7.10 desktop

Khos kim.hoskin at ...1073...
Sun Jan 20 21:44:29 CET 2008


The X window information program does seem to know which window your mouse is
hovering over.. if I could use that in Gambas it would answer my questions. 
I just noticed.. this X window information does have a Global hints section
where it lists the active window! man, how can I access that in Gambas?
Would I need to follow Jose's tip/code?


Benoit Minisini wrote:
> 
> On dimanche 20 janvier 2008, Khos wrote:
>> Thanks Jose and Oh master of Gambas :)
>>
>> I will have a look at Jose's info but Benoit.. I have tried to use
>> Desktop.Find() but the documentation was not so understandable for me. It
>> would seem like a much simpler way with this. Does this function get all
>> the windows titles and put it into an array? if so how would you know
>> which
>> one is the active window? there are no sample codes on how to use this
>> function, unless you could point to some, I would appreciate your efforts
>> very much :)
>>
>> Many thanks for the help so far folks!
>> Kind regards
>> Kim
>>
> 
> I don't know if it is possible to know the active window with X Window.
> Maybe 
> the desktop manager stores a property about it in the root window?
> 
> -- 
> Benoit Minisini
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: http://www.nabble.com/New-to-Gambas---coding-question-how-to-find-the-active-window-on-an-Ubuntu-7.10-desktop-tp14931902p14986597.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list