[Gambas-user] SendKeys for gambas2 ?

Laurent Carlier lordheavym at ...626...
Fri Jul 13 10:03:05 CEST 2007


On Friday 13 July 2007 03:52:50 Rob wrote:
> On Thursday 12 July 2007, José Luis Redrejo wrote:
> > It's possible. A present for you: this small c program send "Caps
> > Lock" when it is on to assure that caps lock is not active. I don't
>
> I forgot all about the XTest extension.  It would be pretty easy to
> wrap that in a Gambas component (though I'm not sure about mapping
> whatever keycodes Gambas uses to X keycodes, if they're different)
> and if no one's done it by when I have coding time available,
> probably early September, I'll do it myself.
>
> 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,
-------------- 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/user/attachments/20070713/21a41ff1/attachment.sig>


More information about the User mailing list