Keyboard/Barcode Reader
This function block reads keyboard and barcode inputs and makes them available to the rest of your flow. It is useful for capturing typed text, barcode scanners that emulate keyboard input, or simple manual entries during runs.
π₯ Inputs
This function block does not have any inputs.
π€ Outputs
Text The latest text line read from the keyboard or barcode device.
Check A boolean signal that indicates a new text value is available (useful as a trigger).
πΉοΈ Controls
Mode Dropdown to choose the input behaviour. Typical options are "Key Press" and "Barcode Reading".
π― Features
Background listening for keyboard-style input so the block provides the latest typed or scanned text without additional user interaction.
Provides both the textual content (
Text) and a trigger-like boolean (Check) to help you react only when new data arrives.Simple mode switch to treat incoming events as regular key presses or as barcode entries (useful for scanners that send a full code at once).
π Usage Instructions
Set the desired behaviour using
Mode.Connect this block's outputs to downstream blocks that process or store the text.
Use the
Checkoutput to trigger actions (for example, log or save the read text only when new data arrives).
π Evaluation
When running, this block listens for keyboard/keyboard-emulating barcode events and updates its outputs with the latest read value and a new-data indicator.
π‘ Tips and Tricks
To persist scanned entries to disk, connect
Text(or useCheckas trigger) intoCSV ExportorData Write Local.Use
Debug Inputto inspect values during development when you want quick logging of what is being read.If you want to combine image-based barcode reading with hardware scanners, use this block together with
Barcode Reader: camera-based detection can serve as a fallback or cross-check.For manual testing or to inject values without hardware, pair with
String Inputto feed known values into your flow.To start workflows only when a code is read, feed
Checkinto logical blocks such asLogic Inputor use it to triggerImage LoggerorImage Writefor associating images with scanned IDs.
π οΈ Troubleshooting
No text appears: ensure your barcode scanner is configured as a keyboard wedge (many scanners send keystrokes).
Scanner sends unexpected characters: check scanner suffix/prefix settings (e.g., carriage return or newline) in the device configuration.
Duplicate or missed readings: try switching
Modebetween "Key Press" and "Barcode Reading" to match how your device sends data, and use theCheckoutput to filter duplicates.Permissions or device access issues: verify the OS recognizes the keyboard/scanner and that no other application is exclusively capturing its input.
Last updated
Was this helpful?