How to open() a USB keyboard device and not have it send to the console

From: Ian Batterbee (ian.batterbee_at_aut.ac.nz)
Date: 08/17/05


Date: Wed, 17 Aug 2005 17:46:32 +1200

Hi all.. I've got a USB barcode scanner, and I'ld like to have a script
running in the background the listens to input received from it.

That seems simple enough, except that as soon as I plug it in, it gets
recognised as a USB keyboard device (which it is, so no surprise there),
and gets added to the devices that send their input to the console.

In other words, if I scan a barcode with it, the digits get entered on
the console just as if I had typed them on the connected PS/2 keyboard.

I suspect this is by design, so that connecting another keyboard or
mouse just 'works', but what I want to do is have that device talking
exclusively to a script that handles the input.

I was hoping it would be as easy as opening say /dev/ttyUSB0, but that
doesn't appear to be the case.



Relevant Pages

  • Re: Download vs buy Suse 10?
    ... > I am not asking you to host the CDs or DVDs. ... >> Linux but with SuSE instead of Fedora. ... Although if you have a script that does ... >> SuSE still has issues with the French Canadian keyboard. ...
    (alt.os.linux.suse)
  • Re: Lock the keyboard
    ... will let you block keyboard input and/or screen output. ... you can't use an ActiveX, you can use AutoIt's own script, which can also ... Will prevent any user input via the mouse or keyboard. ... Windows 2000 User input is blocked and AutoIt can simulate input. ...
    (microsoft.public.scripting.vbscript)
  • Re: variables as operators
    ... There is a useful vbscript for those computers that have a hardware ... hooked up and when GINA presented the login dialog, the keyboard ... The script below is very useful. ...
    (microsoft.public.vb.general.discussion)
  • Re: Internet Explorer/wireless problem
    ... no keyboard running Windows CE connects to a web server via wireless. ... Problem is, without a menu bar there is no way to go back, reload the ... redisplay the menu bar from a script, ...
    (microsoft.public.windowsce.embedded)
  • Re: Internet Explorer/wireless problem
    ... no keyboard running Windows CE connects to a web server via wireless. ... Problem is, without a menu bar there is no way to go back, reload the ... redisplay the menu bar from a script, ...
    (microsoft.public.windowsce.embedded)