Adds support for low end bar code scanners, which work as a keyboard only.
This is a full solution for getting code scanned from multiple low end bar code scanners, including:
- Multiple scanners support
- Characters combine until stop sign (e.g., Enter)
- User-defined key-to-text mapping
- 1.2: Numeric panel keys support
- 1.1: Pass more information to Appender
Package is built on dotNet framework 4.0 and support x86 (32bit) platform target only. You can use this code on x64 but still need to keep the platform target for build x86 instead of Any CPU or x64.
Package is published here.
There is a demo built as WinForm in demo folder.
In this demo, you could link multiple keyboard based bar code scanners to scan codes.
You need to prepare some special codes for naming device.
- 00xx: Set the device name to xx. xx is a 2-digit number and not 00.
- 0000: Unset the device.
- 99xx: Validate the name of the device is xx or not. xx is a 2-digit number and not 00.
- 9900: Validate the device is not named.
- Other number based code: Output.
New scanned code or command will be output to the top of the form.
You can also check the file AsciiCodeAppender.cs for supporting ASCII code between 32 and 126 from scanner.
Many thanks to Emma Burrows and Steve Messer. They explained the API of Windows in this article.
- Test and Demo project are released under MIT license.
- Other projects are released under LGPL-3.0 license.