Page 1 of 1
Barcode and sever info needed
Posted: Wed Jul 31, 2013 4:55 pm
by quailcreek
Hi,
I have some questions regarding barcodes and scanners. Mostly how to print them and how to use the data once their scanned. Barcodes and scanners are new things for me so I’ll have some pretty rudimentary questions. I’m guessing I’m going to use code128 because I believe it allows more flexibility.
Here’s what I need to accomplish:
Print the barcodes along with prefix, the suffix on the barcode needs to be a CR I think.
One barcode to identify a person and find them in the program.
One barcode to identify the item they purchase and record the sale in the program.
I also need to capture registration and payment by CC from a website.
If I can get advice along with some code to get me started or a place I can find it that would be great.
I’m not sure if this can be handled with a computer based program or if I need to do it through a server so advice here is welcome too.
Re: Barcode and sever info needed
Posted: Thu Aug 01, 2013 9:54 am
by Mark
Hi,
You can download a barcode generator here
http://www.milk.com/barcode/
Most barcode scanners work just like a keyboard. Make sure that the focus is on a field and the numbers will be entered automatically.
CC payment implementation is easy with paypal but probably you need a merchant account with a credit card processing company. I have experience with this. Every implementation is different and you have to ask the company for the documentation.
You'll need a website if you want people to buy on-line. You don't need a website for the bar codes, but your system might involve a server depending on your requirements. There's insufficient information to give you all the answers now.
Kind regards,
Mark
Re: Barcode and sever info needed
Posted: Thu Aug 01, 2013 2:24 pm
by bangkok
-buy a regular barcode reader (USB, CDD) (first price 30 to 50 USD)
-it's USB, so plug it into your PC /laptop. it will be recognized as a simple keyboard
-by standard, those first price scanner read 128 barcodes, so no special parameters to set
-to print your own barcode : you need to install a special font
search on google : "free barcode 128 font"
Install it, type "HELLO" in a Wordprocessor, then change the font to the barcode font.
-to read barcode in LiveCode : nothing special to do, because the reader does the decoding work and send "keyboard strokes" to the computer, therefore to Livecode.
-if you create a simple field in LiveCode, put the insertion point, and then scan a barcode, the code will be "typed" into the field
-if you want to launch a special action (for instance a special script after the reading) then you have to play with "suffix". Here, it's done at the barecode reader level (parameter to setup). LiveCode will "read" each characters "typed" by the scanner... and if the character is the special suffix you have decided then the script can launch an action.
Voilà. Not sure if I'm clear. Hope it will help you.
Re: Barcode and sever info needed
Posted: Mon Aug 05, 2013 2:47 am
by quailcreek
Sorry for not replying sooner I've been out of town with limited internet access.
Thanks, Mark,
I'll try to supply more and better information. I realize I was a bit vague. Let me digest your reply and I'll repost my question.
Thanks,
Tom
Re: Barcode and sever info needed
Posted: Mon Aug 05, 2013 2:53 am
by quailcreek
Thanks bangkok,
OK, got the hardware part, pretty simple.
128 barcode, check.
I'm sure I'm going to want to launch a special action once the barcode is read. Is there a list of the special characters and what they do? Do you have more information on how this is handled?
Thanks,
Tom
bangkok wrote:-buy a regular barcode reader (USB, CDD) (first price 30 to 50 USD)
-it's USB, so plug it into your PC /laptop. it will be recognized as a simple keyboard
-by standard, those first price scanner read 128 barcodes, so no special parameters to set
-to print your own barcode : you need to install a special font
search on google : "free barcode 128 font"
Install it, type "HELLO" in a Wordprocessor, then change the font to the barcode font.
-to read barcode in LiveCode : nothing special to do, because the reader does the decoding work and send "keyboard strokes" to the computer, therefore to Livecode.
-if you create a simple field in LiveCode, put the insertion point, and then scan a barcode, the code will be "typed" into the field
-if you want to launch a special action (for instance a special script after the reading) then you have to play with "suffix". Here, it's done at the barecode reader level (parameter to setup). LiveCode will "read" each characters "typed" by the scanner... and if the character is the special suffix you have decided then the script can launch an action.
Voilà. Not sure if I'm clear. Hope it will help you.
Re: Barcode and sever info needed
Posted: Mon Aug 05, 2013 5:51 am
by bangkok
Ok, the idea is the following :
-create a field "mybarcode"
-in your barcode reader, set prefix to "%" and suffix to "$". If the printed barcode is "HELLO" then the barcode reader will decode and send to LiveCode "%HELLO$". Such a scheme allow you to deal with the barcode, once scanned.
-if the first char readed by the scanner is a "%" (prefix), then the field is emptied and a var is set
-if the var is true, then all following characters will be put into the field
-... until a "%" (suffix) is catched (field is emptied again, and an action is launched)
-in your card script, type the following :
global gReadBarCode
Code: Select all
on keyDown theKey
if thekey is "%" then
put empty into field "myBarCode"
put true into gReadBarCode
exit keydown
end if
if gReadBarCode=true then
put theKey after field "myBarCode"
exit keydown
end if
end if
if thekey is "$" and gReadBarCode=true then
put false into gReadBarCode
delete last char of field "myBarCode"
--- put the script to deal with your action here
myAction
exit to top
end if
end keyDown
Re: Barcode and sever info needed
Posted: Sat Aug 10, 2013 4:09 pm
by quailcreek
Thanks a lot, Bangkok. That will get me going ing the right direction.