Recent

Author Topic: Do we have a barcode scanner module in lcl?  (Read 8070 times)

jshand2010

  • Full Member
  • ***
  • Posts: 230
Do we have a barcode scanner module in lcl?
« on: May 19, 2012, 12:37:53 am »
sorry if this is in the wrong spot, but, just had to ask.

thanks again
OpenSUSE Tumbleweed x86_64, Lazarus 2.0.0RC3 fixes branch, fpc 3.2.0 fixes branch

ludob

  • Hero Member
  • *****
  • Posts: 1173
Re: Do we have a barcode scanner module in lcl?
« Reply #1 on: May 19, 2012, 07:59:30 am »
Most scanners are detected by the system as a keyboard. They inject the barcode as a sequence of keys correcponding to the decoded barcode, typically terminated by a Enter key.
Some scanners can be configured to insert a leading and trailing character to make distinction between barcode and keyboard entry easier. Read your barcode reader manual for the details.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8114
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Do we have a barcode scanner module in lcl?
« Reply #2 on: May 19, 2012, 10:37:05 am »
Not in LCL, but there's a 3rd party package called SymScan (seems device specific)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1036
    • formatio reticularis
Re: Do we have a barcode scanner module in lcl?
« Reply #3 on: May 30, 2014, 07:33:43 pm »
I think that jshand2010 wanted to ask if there is a package or unit that converts a barcode in form of an image file to numbers or text, i.e. a software solution in Free Pascal.

Of course, most barcode scanners are recognized as keyboards, but obviously that wasn't what jshand2010 was searching for. Likewise, these Excel barcode add-ins create barcodes from numbers or strings, but the question was for the oppositve conversion.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.0.6 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 7588
Re: Do we have a barcode scanner module in lcl?
« Reply #4 on: May 30, 2014, 09:18:24 pm »
(Note from the moderator:  threads about barcodes seem to attract spammers that just post random links to C# barcode packages. We try to remove them as quick as possible. If you notice them, please report them)