EasyManuals Logo

Code CR1500 Programming Guide

Code CR1500
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #36 background imageLoading...
Page #36 background image
D028868 CR1500 CR1100 CR2700 JavaScript Programming Guide User Manual Page 36 of 41
The Code Corporation
12393 South Gateway Park Place, Suite 600, Draper, UT 84020
+1 (801) 495-2200
FAX +1 (801) 495-0280
Characters
Key
/0 - /9
Number pad
/f1 - /f12
Function keys
//
/
/k
Keyboard scan codes
In addition to sending keyboard keystrokes using the keystroke representations above, CodeXML also has
the ability to send USB scan codes (/k) to identify an exact key on a keyboard for a non-ASCII character.
One such use case involves some language keyboards (e.g., Italian) labeling the left Alt key as "Alt" and the
right "Alt" key as "AltGr" and entering different language characters for a keystroke based on just a key,
Shift+key, AltGr+key, and even AltGr+Shift+key. Using CodeXML to identify the scan code for AltGr (right
Alt), a reader can send a language character available only when AltGr (Alt Grave) is pressed by sending the
scan codes for AltGr and the key.
USB scan codes provide for "modifiers"; that is, an indication of whether or not the Ctrl, Shift, Alt, AltGr
and/or Meta/GUI (e.g., "Windows") keys are pressed at the same time a normal key is pressed, thus
"modifying" the key's keystroke. For example, to send just the "a" character using scan codes requires
sending the scan code for the "a" key (0x04) with no modifier (0x00); however, to send the "A" character
requires sending the "a" key's scan code with a "Shift" modifier (0x02 (left Shift) or 0x20 (right Shift)).
The table below identifies the 2-digit hexadecimal representation for the "modifier" keys.
Key
Modifier
Left Ctrl
0x01
Left Shift
0x02
Left Alt
0x04
Left Meta/GUI
0x08
Right Ctrl
0x10
Right Shift
0x20
Right Alt (AltGr)
0x40
Right Meta/GUI
0x80
Note modifier keys may be combined by or'ing their values together; e.g., Left Shift + Right Alt = 0x42.
The CodeXML syntax for sending scan codes is the CodeXML header, followed by "/k", followed by two 2-
digit hexadecimal values indicating the modifier(s) and key scan codes, respectively.
To illustrate, assume an Italian-based application requires the Euro symbol "", which is a non-ASCII
character, for use with an Italian keyboard.
Here are the Italian keyboard character layouts based on the modifier keys pressed. Note the Euro sign is
available as AltGr+5 or AltGr+e.

Table of Contents

Other manuals for Code CR1500

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Code CR1500 and is the answer not in the manual?

Code CR1500 Specifications

General IconGeneral
BrandCode
ModelCR1500
CategoryBarcode Reader
LanguageEnglish

Related product manuals