开发者

barcode scanner polling

I am working with a bar code scanner and java currently. i wanted to know wether there is a possibility to poll this device.

What I want: a popup message every time you scan a barcode

What I dont want: is to focus a text field first to do so.

I want this to run in the background so that the user only has to scan something without anything in focus. is this possible? in other words, i dont want开发者_如何学Go to use it like a keyboard but more like a sensor that informs me every time a new value is available.

thank in advance


i think these mostly work as keyboard input.

you could probably create a KeyListener() to check for the incoming values.


Yes you can listen barcode scanning detection on your whole hardware at anytime example:PC or Laptop or Tablet etc.

For that you need to add barcode scanner listener on your main file which is available to all the pages or all the urls of your application.

You can use my custome script from my answer on stackoverflow

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜