Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261177AbVC2QFt (ORCPT ); Tue, 29 Mar 2005 11:05:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261178AbVC2QFt (ORCPT ); Tue, 29 Mar 2005 11:05:49 -0500 Received: from dvhart.com ([64.146.134.43]:14987 "EHLO localhost.localdomain") by vger.kernel.org with ESMTP id S261177AbVC2QFq (ORCPT ); Tue, 29 Mar 2005 11:05:46 -0500 Message-ID: <42497D1D.5090301@mauery.com> Date: Tue, 29 Mar 2005 08:06:53 -0800 From: Vernon Mauery User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mister Google Cc: linux-kernel@vger.kernel.org Subject: Re: Keystroke simulator References: In-Reply-To: X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 14 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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/