[Gambas-user] Sending key code (macro recorder)
bsteers4 at gmail.com
Tue Nov 3 22:02:26 CET 2020
Yes i read the doc , well in part.
I was hoping to simply record and play back key events.
But if the codes the gambas Key class gives do not correlate to what x11
wants then i think it's a project to scrap.
the keysymdef file lists tons and tons of keys, for different languages
I might have to look into external libraries to see if there is a way,
maybe hack the keyboard bus if poss.
thanks for the info.
> > Am i going to have to map out a complete list of strings to match all
> > codes that Don't have Key.Text ?
> > Or can someone suggest a better way to record key events them play them
> > back?
> > And yes i read the warning about not using Key.Code as they differ
> > between gtk and qt but for a macro recorder i do not see it matters
> > unless i want to save the macros and use them on a different system.
> > Many thanks.
> > Bruce
> > ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> Have you read the doc? The key names used by Desktop.SendKeys are the
> X11 one. They are nothing to do with Key class constants. So, yes, you
> have to integrate by hand the contents of the X11 key names include file
> and make the conversion.
> Note that this works only on X11. Wayland forbids sending key events to
> application, at least freely.
> Benoît Minisini
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User