DLSoft Application Note 04011 Function key emulation with barcodes Most keyboard wedge barcode scanners will transmit function key codes when specific character combinations are scanned from a barcode. These combinations are scanner dependent and are beyond the control of dLSoft. Details of the combinations required should be in the barcode scanner's manual. These notes are a guide to the techniques used by the generic scanners we have used in-house. For example, using Code 39 barcodes $A will normally transmit the F1 key, or using Code 128 the ASCII SOH (ASCII value 1) will transmit the F1 key. For combination of the Shift, Alt or Ctrl key with other keys the situation is slightly more complex, in that the sequence: is required. For example using Code 39 barcodes the sequence %DF%E sends F, or using Code 128 barcodes the sequence F sends F (where is ASCII value 30 and is ASCII value 31). While many of these functions are dependent on the barcode scanner in use, and details should be found in the scanner's manual, the following table shows some of the common codes in use. Key Code 39 Code 128 ASCII F1 $A SOH 1 F2 $B STX 2 F3 $C ETX 3 F4 $D EOT 4 F5 $E ENQ 5 F6 $F ACK 6 F7 $G BEL 7 %B FS 28 %C GS 29 %D RS 30 %E US 31 Most dLSoft barcode products enable ASCII values for non-printing characters to be used and details of the method of entry for these characters are given in the product's manual. As an example for dBarcode-32, characters with ASCII values of less than 32 (the space character) many be entered by typing 0xyz, where xyz is the three digit number obtained by adding 128 to the ASCII value. Note that this typing must use the numeric keypad - not the normal keys on a QWERTY keyboard. So producing a barcode to represent F requires the following characters: F entered by typing 0158 F 0159 ---------------------------------- dLSoft April 2001