Epson TM-T70-i ePOS-Device XML Users Manual For TM-i firmware v4.1 - Page 153
Device Control Script Name Object, onDeviceData event (Input Device That Can Run with a HID Driver)
View all Epson TM-T70-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 153 highlights
Chapter 5 Device Control Script Device Control Script Name Object onDeviceData event (Input Device That Can Run with a HID Driver) The event used to receive the data detected from a key input device. For the device control script for a key input device, describe an event in this format. Syntax onDeviceData(event, keycode, ascii); Parameter event :Object type : (Number) Receives a direction of key operation. Value 1 2 Key down Key up Description keycode ascii :Object type :(Number) Receives a keycode. For details, refer to List of KeyCode (p.189). :Object type : (String) Receives a character corresponding to the operated key. "undefined" is applied when no characters corresponding to the keycode (F1 key, for example) exist. onDeviceData event (Serial Communication Device) The event used to receive the data detected from a serial communication device. For the device control script for a serial communication device, describe an event in this format. 5 Syntax onDeviceData(data); Parameter data :Object type : (Buffer) Receives the data received from a serial communication device. 153