SendKey

<< Click to Display Table of Contents >>

Navigation:  Management >

SendKey

Previous pageReturn to chapter overviewNext page

[GUI Control Only, not supported by the Community Edition]

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

method void VPE.SendKey(

KeyFunction [long] Vkey

)

KeyFunction [long] VKey

All available keyboard functions are enumerated in the VKEY_xyz constants (see below).

Example:

ActiveX / VCL:

Doc.SendKey(VKEY_SCROLL_DOWN)

 

.NET:

Doc.SendKey(KeyFunction.ScrollDown)

Scrolls the preview down by one cm.

 

Possible values for the parameter "VKey" are:

Constant

Value

Enum

VKEY_SCROLL_LEFT

0

ScrollLeft

VKEY_SCROLL_PAGE_LEFT

1

ScrollPageLeft

VKEY_SCROLL_RIGHT

2

ScrollRight

VKEY_SCROLL_PAGE_RIGHT

3

ScrollPageRight

VKEY_SCROLL_UP

4

ScrollUp

VKEY_SCROLL_PAGE_UP

5

ScrollPageUp

VKEY_SCROLL_DOWN

6

ScrollDown

VKEY_SCROLL_PAGE_DOWN

7

ScrollPageDown

VKEY_SCROLL_TOP

8

ScrollTop

VKEY_SCROLL_BOTTOM

9

ScrollBottom

VKEY_PRINT

10

Print

VKEY_MAIL

11

Mail

VKEY_FULL_PAGE

12

FullPage

VKEY_PAGE_WIDTH

13

PageWidth

VKEY_ZOOM_IN

14

ZoomIn

VKEY_ZOOM_OUT

15

ZoomOut

VKEY_GRID

16

Grid

VKEY_PAGE_FIRST

17

PageFirst

VKEY_PAGE_LEFT

18

PageLeft

VKEY_PAGE_RIGHT

19

PageRight

VKEY_PAGE_LAST

20

PageLast

VKEY_HELP

21

Help

VKEY_INFO

22

Info

VKEY_CLOSE

23

Close

VKEY_GOTO_PAGE

24

GotoPage

VKEY_OPEN

25

Open

VKEY_SAVE

26

Save

VKEY_ESCAPE

27

Escape

 

See also:

DefineKey