Recent

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

jshand2010

  • Full Member
  • ***
  • Posts: 236
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.2.0RC2 fixes branch, fpc 3.2.3 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: 8744
  • 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: 1232
    • 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.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11351
  • FPC developer.
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)

 

TinyPortal © 2005-2018