Properties, Status = simulatekeydown ( vkcode ), Status = simulatekeyup ( vkcode ) – Casio Naurtech CETerm Ver.5.5 Scripting Guide User Manual

Page 58: Property description values

Advertising
background image

N

AURTECH

W

EB

B

ROWSER AND

T

ERMINAL

E

MULATION FOR

W

INDOWS

CE

AND

W

INDOWS

M

OBILE




CETerm Scripting Guide

Page 58


status = SimulateKeyDown ( vkCode )

Simulate the press of a hardware key. Th

e vkCode is an integer “virtual-key

code” between 1 and 254. See Appendix 5 for virtual-key values. This key event
will be received by the current active (foreground) window which may not be
CETerm. The key down action may also generate text input to the application.
Typically SimulateKeyDown() is followed by a SimulateKeyUp(). Return 0 on
success, -1 for invalid VK code.

status = SimulateKeyUp ( vkCode )

Simulate the release of a hardware key. Th

e vkCode is an integer “virtual-key

code” between 1 and 254. See Appendix 5 for virtual-key values. This key event
will be received by the current active (foreground) window which may not be
CETerm. Typically SimulateKeyUp() follows a SimulateKeyDown() call. Return
0 on success, -1 for invalid VK code.

status = SimulateKeyPress ( vkCode, keyStateFlags, text )

Simulate the press and release of a key and specify generated text. The vkCode
is an integer “virtual-key code” between 1 and 254. See Appendix 5 for virtual-
key values. The keyStateFlags indicate the simulated state of modifier keys.
See Appendix 4 for key state flag values. The text is an arbitrary text string that
will be sent to the application together with the key events. This key event will be
received by the current active (foreground) window which may not be CETerm.
SimulateKeyPress() should be used when you need to simulate text sent to an
independent application. Return 0 on success, -1 for invalid VK code.


Properties

The Keyboard object has the following properties.

Property

Description

Values

LastError

Returns the last error value associated
with the Keyboard object.

unsigned
integer

Advertising
This manual is related to the following products: