Create a Barcode that encodes and returns a "Enter/Return" keyboard input
Overview
At times when you would like to scan a barcode then prompt an action, you can create a barcode encoded with a "Enter/Return" input. The following article illustrates how this is done.
Applicable to
BarTender Designer
Information
Requirements
- You will need to create a barcode that supports encoding the full ASCII character set. Most bar code symbologies such as Code 39 Full ASCII, Code 128, Data Matrix, QR code, etc. will work, but Code 39 Regular won't.
- The barcode scanner will also need to be capable of scanning this particular symbology.
- You will also need a software application or hardware device acting as a "keyboard wedge" that translates data scanned from a barcode reader into keyboard strokes for a computer.
Creating the Barcode
- Create the desired barcode object with a symbology that supports the full ASCII character set in your BarTender document.
- Right-click and go into the barcode properties.
- Select the desired data source in the barcode you want to encode the "enter/return" keyboard input.
- Click the insert special symbol or special character button.
- Go to the control characters tab.
- Select carriage return (CR) and click insert. Also, select line feed (LF) and click insert. This should insert two non-printable characters that would simulate a "enter/return" keyboard input.
- Close out the barcode dialogs when finished entering in the desired data.
Additional resources
- Another option would be programming your scanner directly to perform a "enter/return" keyboard input based on a sequence of characters scanned. See: Creating Barcodes with Keyboard Functions and Shortcuts.
- Also see related article: Can You Add a Horizontal Tab in a Barcode