VpeSendKey

<< Click to Display Table of Contents >>

Navigation:  Management Functions >

VpeSendKey

Previous pageReturn to chapter overviewNext page

[Windows platform only; not supported by the Community Edition]

Simulates a keystroke of the user. This allows your application for example to scroll the preview.

void VpeSendKey(

VpeHandle hDoc,

int vkey

)

VpeHandle hDoc

Document Handle

int vkey

All available keyboard functions are enumerated in the VKEY_xyz constants:

Constant

Value

VKEY_SCROLL_LEFT

0

VKEY_SCROLL_PAGE_LEFT

1

VKEY_SCROLL_RIGHT

2

VKEY_SCROLL_PAGE_RIGHT

3

VKEY_SCROLL_UP

4

VKEY_SCROLL_PAGE_UP

5

VKEY_SCROLL_DOWN

6

VKEY_SCROLL_PAGE_DOWN

7

VKEY_SCROLL_TOP

8

VKEY_SCROLL_BOTTOM

9

VKEY_PRINT

10

VKEY_MAIL

11

VKEY_FULL_PAGE

12

VKEY_PAGE_WIDTH

13

VKEY_ZOOM_IN

14

VKEY_ZOOM_OUT

15

VKEY_GRID

16

VKEY_PAGE_FIRST

17

VKEY_PAGE_LEFT

18

VKEY_PAGE_RIGHT

19

VKEY_PAGE_LAST

20

VKEY_HELP

21

VKEY_INFO

22

VKEY_CLOSE

23

VKEY_GOTO_PAGE

24

VKEY_OPEN

25

VKEY_SAVE

26

VKEY_ESCAPE

27

Example:

VpeSendKey(hDoc, VKEY_SCROLL_DOWN)

Scrolls the preview down by one cm.

 

See Also:

VpeDefineKey