Select your printer model
Parameters are refined by the selected printer.
<type>setprefix</type>
Sets a key code which is recognized as the start of a string to accept keyboard input as a sequence of strings.
When the key code specified by the <type>setprefix</type> element is entered, the string after it until the Enter key is pressed can be acquired by the <type>onstring</type> element.
Request
Child element |
Data type |
Description |
---|---|---|
keycodes |
int |
Specifies the key code arrangement. |
Sample program
<data> <type>setprefix</type> <keycodes array=”true”>49</keycodes> <keycodes>50</keycodes> <keycodes>51</keycodes> <keycodes>52</keycodes> </data> |
Supplementary explanation
- Use this element for keyboard input as an alternative to a barcode.
- To finish character entry, execute the <type>setprefix</type> element without specifying the child element keycodes.
- Refer to List of KeyCode for details of the key code.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ePOS-Device XML includes patented or patent pending functions. The contents must not
be disclosed to third parties.
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix