0

I would like to use Barcode authentication for my code. Barcode scanner works like a keyboard (plug&play). How can i detect a string typed via keyboard(eg. 599948375), without using a textbox?

So i would like to run a trigger in the background what detect a typed string. I don't want to use textbox to avoid unnecessary clicking. Any tip?

sendwich
  • 97
  • 1
  • 10
  • You mean like a keylogger? – Vidmantas Blazevicius May 03 '19 at 23:21
  • Is this a web page we're talking about? [Simplest way to detect keypresses in Javascript](https://stackoverflow.com/questions/16089421/simplest-way-to-detect-keypresses-in-javascript) – John Wu May 03 '19 at 23:55
  • Yes, like a keylogger. – sendwich May 04 '19 at 00:02
  • Almost every barcode scanner out there, when programmed correctly, can send a carriage return and/or a line feed at the end of every read, so no more clicking a button, it automatically submits the form whit the input's value. – M. Ruiz May 04 '19 at 04:52

0 Answers0