
40
Class Reference
4.2.1.5
sendKey
The gui.sendKey method sends a “pressed key” indication to the OHV300 firmware as
though it came from OHV300 keypad.
Format:
result = gui.sendKey(key);
Where:
key
– number constant; the key to send. Use number constants defined in section 0.
result
– Boolean;
true
if successful;
false
if not, which usually means the keypad is
locked but can also mean that the key buffer is full.
Example:
gui.sendKey(enter);
Sends the enter key event to the OHV300 firmware as though the operator had pressed
the enter key.
4.2.1.6
sendText
The gui.sendText method sends a text string to the OHV300 gui object as though it had
been entered from the keypad.
Format:
result = gui.sendText(text);
Where:
text
– string; the text to send.
result
– Boolean;
false
if all specified text could not be sent to the GUI (in which case,
none of it will have been sent); otherwise,
true
.
Example:
reader.onDecode =
function(decode) { gui.sendText(decode.data); }
Sends all decode data to the
gui
object as though it had been entered from the keypad.
4.2.1.7
show
The
gui.show
method instructs the OHV300 to write the specified form, menu, or text
object to the OHV300 display as a standard
gui
object (section 4.2.3).
This low level approach is not recommended for use in most applications. Instead, we
recommend that you use the
gui.showForm
,
gui.showMenu
, and
gui.showSubMenu
methods.
Format:
gui.show(object);