[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: typing keys in scripts

On Fri, Nov 28, 2008 at 01:12:39 -0600, Boyd Stephen Smith Jr. wrote:
> On Thursday 2008 November 27 22:20, Daniel Dalton wrote:
> > I need to kill my screen reader when opening emacs. So I'm writing a
> > script. I can kill it on the keyboard with insert and numpad enter. So
> > is there anyway to type this key command from a script? If so how. I
> > just want a script to type this key for me basically so I don't have to
> > press it each time...
> I think there's a fakekey command that basically delivers a keyboard event to 
> the kernel, which is probably the easiest way to do that.  ISTR the ACPI 
> scripts using that.
> ...  From investigations on my local system.  Try using acpi_fakekey from the 
> acpi-support package.  Not sure the best way to determine what keycode 
> Ins+NumEnter is.

I think "showkey" from package kdb or console-tools (depending on which
you use) should give you the right keycodes if we are talking about the
normal (non-X) keyboard. Here is what I get for Ins+NumEnter:

keycode 110 press
keycode  96 press
keycode  96 release
keycode 110 release

Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |

Reply to: