Re: "SendKeys" equivalent in Linux

From: Wolfgang Draxinger (wdraxinger_at_darkstargames.de)
Date: 07/25/05


Date: Mon, 25 Jul 2005 02:10:07 +0200

Tony Lawrence wrote:

> EKurtz99@aol.com wrote:
>> In Windows it is possible to control one application from
>> another by sending keystrokes to the buffer for that app. The
>> technique is limited, of course, by what you can do via the
>> keyboard in the driven app. Is there an equivalent in Linux?
>>
>
> Several.
>
> One is just to use an input file:
>
> yourapp < yourfileofkeystrokes

That's limited to console programs. And if the program messes
around with the console settings I's getting challenging.

In X11 it's quite easy possible to send virtual keystrokes.
However I never did it so far and it's been quite a while since
I've browsed the Xlib reference. But the Xlib has definitely
functions you want.

Wolfgang Draxinger

-- 


Relevant Pages

  • Re: "SendKeys" equivalent in Linux
    ... > sending keystrokes to the buffer for that app. ... The technique is ... One is just to use an input file: ...
    (comp.os.linux.misc)
  • Re: Keystrokes and mouse clicks to another app
    ... I'm managing a project that will, as part of it, require me (so I'm ... I was therefore considering writing an app that will enter these ... by sending keystrokes and mouse clicks to ... IE6, you can also use its very useful object modelto do ...
    (microsoft.public.vc.mfc)
  • Re: How to find if App is finished printing?
    ... application by sending keystrokes and just opening a document in the app and ... printing it. ...
    (microsoft.public.vb.general.discussion)
  • Re: Deduce application type
    ... You're porting a Windows app to Media Access Controllers? ... There is no strict line between GUI and console programs on OS X, ... and an executable outside of such a bundle is console. ...
    (comp.sys.mac.programmer.help)
  • "SendKeys" equivalent in Linux
    ... sending keystrokes to the buffer for that app. ... The technique is ...
    (comp.os.linux.misc)