[Gambas-devel] Events

Benoit Minisini gambas at ...1...
Fri Sep 15 20:24:24 CEST 2006


On Friday 15 September 2006 19:29, Rob wrote:
> On Friday 15 September 2006 12:29, Laurent Carlier wrote:
> > I've take a small look to Qt doc, and i guess it can be done
> > with through the static method QApplication::sendEvent(
> > QObject * receiver, QEvent * event ). I don't know if it can
> > work and if it exist with gtk° ....
>
> That might be helpful for driving our own programs (though I
> would question the coding style that resulted in the need to use
> this) but in VB, SendKeys is most often used to drive other
> programs.
>
> Thank you for doing the research, though... if I get to my patch
> this weekend maybe I'll figure out a way to make a first
> implementation of a SendKeys method.
>
> Rob
>

If you want to send a key to another application, you must forge an X event 
and uses the X library.

But I'm not sure that if you send a keyboard event to an application, it will 
understand it, as only the window having the focus should receive keyboard 
events.

Regards,

-- 
Benoit Minisini





More information about the Devel mailing list