Use Built-in Hardware Barcode Scanner with Automatig
Posted: 13 Jan 2019 12:30
Hello,
I wonder, if it is possible to use the built-in Hardware Barcode Scanner of my SWELL V710 (http://www.cnswell.com/en/product/produ ... asp?id=417) with Automagic. The Scanner is integrated in Android, meaning, whenever I scan a Barcode it types the Barcode like keystroke-input coming from an external Keyboard. Thus, all I need is handle keystroke-input and assign it to a variable. In order to detect wheter a keystroke-input Comes from the Barcode Scanner or an external Keyboard (e. g. my Bluetooth Keyboard), Automagic should watch any Input for a Special Character. Let's say, I configure the Barcode-Reader, sending a '|' Prefix before "typing" the Barcode. Automagic detects the '|' Character and catches all keystrokes until a CR (Carriage Return) is "typed". I do not have any experience, how to configure Automagic for catching several keystrokes (lets say, the Barcodes contains up to 20 characters). My Idea is to Set an InputDialog, coming up, when the '|' Prefix is detected, the Barcode Reader just type in the Barcode. I've tested this: The Barcode-Data is written into the InputDialog. Thats fine so far, but I have no idea, how to "click OK" on the DialogBox automatically, at least CR does not close the Dialog Box. I think, the Timeout-Feature of DialogBox is like an Escape, not an OK, thus the typed Input isn't handled but refused.
Enclosed some Screenshoots of Barcode-Scanner-Settings, for better understanding, here you see see Barcode-Scanner:
Regards from Germany,
Lucas
I wonder, if it is possible to use the built-in Hardware Barcode Scanner of my SWELL V710 (http://www.cnswell.com/en/product/produ ... asp?id=417) with Automagic. The Scanner is integrated in Android, meaning, whenever I scan a Barcode it types the Barcode like keystroke-input coming from an external Keyboard. Thus, all I need is handle keystroke-input and assign it to a variable. In order to detect wheter a keystroke-input Comes from the Barcode Scanner or an external Keyboard (e. g. my Bluetooth Keyboard), Automagic should watch any Input for a Special Character. Let's say, I configure the Barcode-Reader, sending a '|' Prefix before "typing" the Barcode. Automagic detects the '|' Character and catches all keystrokes until a CR (Carriage Return) is "typed". I do not have any experience, how to configure Automagic for catching several keystrokes (lets say, the Barcodes contains up to 20 characters). My Idea is to Set an InputDialog, coming up, when the '|' Prefix is detected, the Barcode Reader just type in the Barcode. I've tested this: The Barcode-Data is written into the InputDialog. Thats fine so far, but I have no idea, how to "click OK" on the DialogBox automatically, at least CR does not close the Dialog Box. I think, the Timeout-Feature of DialogBox is like an Escape, not an OK, thus the typed Input isn't handled but refused.
Enclosed some Screenshoots of Barcode-Scanner-Settings, for better understanding, here you see see Barcode-Scanner:
Regards from Germany,
Lucas