The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Vernon Mauery <vernon@mauery.com>
Cc: Mister Google <binary-nomad@hotmail.com>, linux-kernel@vger.kernel.org
Subject: Re: Keystroke simulator
Date: Tue, 29 Mar 2005 11:21:36 -0500	[thread overview]
Message-ID: <d120d5000503290821414ec099@mail.gmail.com> (raw)
In-Reply-To: <42497D1D.5090301@mauery.com>

On Tue, 29 Mar 2005 08:06:53 -0800, Vernon Mauery <vernon@mauery.com> wrote:
> Mister Google wrote:
> > Is there a way to simulate a keystroke to a program, ie. have a program
> > send it something so that as far as it's concerned, say, the "P" key has
> > been pressed?
> >
> Look at the input system.  Documentation/input/input-programming.txt has a great tutorial on how to do this.
> 

You probably will want to write a program using uinput driver to
inject events into input subsystem from userspace. Then the rest of
the world will not be able to recognize whether the data comes from
your program of from a real keyboard.

-- 
Dmitry

  reply	other threads:[~2005-03-29 16:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 11:53 Keystroke simulator Mister Google
2005-03-29 16:06 ` Vernon Mauery
2005-03-29 16:21   ` Dmitry Torokhov [this message]
2005-03-29 18:42 ` Pavel Machek
     [not found] <fa.i7mbmvh.16m8c19@ifi.uio.no>
2005-03-29 19:25 ` Bodo Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d120d5000503290821414ec099@mail.gmail.com \
    --to=dmitry.torokhov@gmail.com \
    --cc=binary-nomad@hotmail.com \
    --cc=dtor_core@ameritech.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vernon@mauery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox