[Gambas-devel] [Gambas-user] SendKeys for gambas2 ? (moved to devel list)
Laurent Carlier
lordheavym at ...176...
Fri Jul 13 14:32:41 CEST 2007
> > > Do all X servers pretty much have the XTest extension turned on by
> > > default? Mandriva has theirs turned on and it looks like Ubuntu does
> > > too, but I don't know whether it's standard enough to make
> > > a "gb.sendkeys" component.
> > >
> > > Rob
> >
> > There is some functions to translate key string to keysym :
> > http://tronche.com/gui/x/xlib/utilities/keyboard/XStringToKeysym.html
> >
> > A good to way to add this should be through Application.SendKey() :-)
> >
> > Last word is for Benoit ;-p
> >
> > Regards,
>
> 1) I suggest Desktop.SendKey(s). This is the class for desktop related
> things.
>
> 2) You must test that the XTEST extension is available. There is a X API
> for that, but I don't remember which one.
>
> 3) No need for a new component. You can put the code in gb.qt. I will put
> it in gb.gtk too. In the future, maybe all desktop related things should be
> put in gb.desktop - At the moment it is written in Gambas, so this is just
> a matter of creating a C component and put the Gambas part in it.
>
> Regards,
There is XqueryExtension function :
"The XQueryExtension function determines if the named extension is present. If
the extension is not present, XQueryExtension returns False; otherwise, it
returns True."
Regards,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.gambas-basic.org/pipermail/devel/attachments/20070713/ed9be5ee/attachment.sig>
More information about the Devel
mailing list