Bar Code Reader?
I am helping a friend with an interactive project in which he wants to select some media using a bar code reader as an interface.
I appretiate some hints about it:
How to bring the input to Max?
is the input "text" or keyboard inputs?
Do I have to use the "hi" object?
would you recomend some specific brand or model?
I have heard the "Symbol’ is good.
There are dozens of them. Mostly a barcode reader is a keyboard device, and a barcode is a sequence of characters in a barcode font.
You should be able to enter characters from a barcode reader in all the same ways you can enter keyboard generated text. You just need to set it up with your system.
typically most bar code scanners output text as though it was typed
rather quickly – at least the ones ive seen for OS X that my old
place of employment used.
im not sure if ‘key’ will read it, but it should dump text to a text
box when the trigger is pulled.. although ive never tried hooking
one up to max.
btw, hiya ;)
v a d e //
i did something like that some time ago using a metrologic scanner.
the easiest way is to get one with a usb connection, it then works
like a keyboard and you just use the ‘key’ object to get the data and
then transform the character codes to (list of) numbers.
take this sniplet of code, it generates a list of numbers for every
incoming barcode. (it assumes that the scanner sends a return
character after each barcode.)
hope that helps,
#N vpatcher 192 60 592 360;
#P outlet 71 230 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 71 125 29 196617 – 48;
#P button 221 125 15 0;
#P newex 71 145 60 196617 zl group 13;
#P newex 71 106 165 196617 if $i1 == 13 then out2 $i1 else $i1;
#P newex 71 47 40 196617 key;
#P newex 71 82 224 196617 if $i1 >= 48 && $i1 < = 57 || $i1 == 13 then
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 2 0 5 0;
#P connect 4 0 3 0;
#P connect 5 0 3 0;
#P connect 3 0 6 0;
#P connect 2 1 4 0;
Thank you so much for the patch and info!
I will start trying!
Will have a try of the barcode reader
hello, MARIAH, thank you for your sharing,
I checked the link you shared, it is all about java barcode reader, and I found this:
it is about VB.NET barcode generator, so,
can you give more info about .net barcode reader or generator?
thanks in advance.