* Keystroke simulator
@ 2005-03-29 11:53 Mister Google
2005-03-29 16:06 ` Vernon Mauery
2005-03-29 18:42 ` Pavel Machek
0 siblings, 2 replies; 5+ messages in thread
From: Mister Google @ 2005-03-29 11:53 UTC (permalink / raw)
To: linux-kernel
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?
Thanks,
The Nomad.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Keystroke simulator
2005-03-29 11:53 Keystroke simulator Mister Google
@ 2005-03-29 16:06 ` Vernon Mauery
2005-03-29 16:21 ` Dmitry Torokhov
2005-03-29 18:42 ` Pavel Machek
1 sibling, 1 reply; 5+ messages in thread
From: Vernon Mauery @ 2005-03-29 16:06 UTC (permalink / raw)
To: Mister Google; +Cc: linux-kernel
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.
--Vernon
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Keystroke simulator
2005-03-29 16:06 ` Vernon Mauery
@ 2005-03-29 16:21 ` Dmitry Torokhov
0 siblings, 0 replies; 5+ messages in thread
From: Dmitry Torokhov @ 2005-03-29 16:21 UTC (permalink / raw)
To: Vernon Mauery; +Cc: Mister Google, linux-kernel
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Keystroke simulator
2005-03-29 11:53 Keystroke simulator Mister Google
2005-03-29 16:06 ` Vernon Mauery
@ 2005-03-29 18:42 ` Pavel Machek
1 sibling, 0 replies; 5+ messages in thread
From: Pavel Machek @ 2005-03-29 18:42 UTC (permalink / raw)
To: Mister Google; +Cc: linux-kernel
On Út 29-03-05 11:53:32, 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?
See /dev/input/uinput
Pavel
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <fa.i7mbmvh.16m8c19@ifi.uio.no>]
end of thread, other threads:[~2005-03-29 20:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-29 11:53 Keystroke simulator Mister Google
2005-03-29 16:06 ` Vernon Mauery
2005-03-29 16:21 ` Dmitry Torokhov
2005-03-29 18:42 ` Pavel Machek
[not found] <fa.i7mbmvh.16m8c19@ifi.uio.no>
2005-03-29 19:25 ` Bodo Eggert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox