Re: "SendKeys" equivalent in Linux
From: Tony Lawrence (foo_at_pcunix.com)
Date: 07/24/05
- Next message: Peter T. Breuer: "Re: How to omit certain files when use "tar"?"
- Previous message: Oksana: "Re: O'Reilly critique on Linux and audio"
- In reply to: EKurtz99_at_aol.com: ""SendKeys" equivalent in Linux"
- Next in thread: Wolfgang Draxinger: "Re: "SendKeys" equivalent in Linux"
- Reply: Wolfgang Draxinger: "Re: "SendKeys" equivalent in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 24 Jul 2005 16:13:26 -0400
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
Another is to use Expect (see http://aplawrence.com/Books/expect.html )
which is usually the easiest way to do anything complicated.
Perl, Python etc. include the ability to open another program just as
you'd open a file and send keystrokes to it.
-- Tony Lawrence Unix/Linux/Mac OS X resources: http://aplawrence.com
- Next message: Peter T. Breuer: "Re: How to omit certain files when use "tar"?"
- Previous message: Oksana: "Re: O'Reilly critique on Linux and audio"
- In reply to: EKurtz99_at_aol.com: ""SendKeys" equivalent in Linux"
- Next in thread: Wolfgang Draxinger: "Re: "SendKeys" equivalent in Linux"
- Reply: Wolfgang Draxinger: "Re: "SendKeys" equivalent in Linux"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|