SendKey

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

SendKey


 

Passes the keystrokes to the currently focused control.

 


syntax

SendKey (

         virtKey

         [, ignoreCapsLock=FALSE]

         )

 


Parameters

 

virtKey

 

Type:

Number

 

The virtual key code.

To pass a letter or number key, specify the ASCII code for that character. Other special keys are represented as follows:

Virtual Key Code

Corresponding Key

{BS}

Back Space

{UP}

Up

{DOWN}

Down

{LEFT}

Left

{RIGHT}

Right

{ENTER}

Enter

{TAB}

TAB

{HOME}

HOME

{END}

END

{CLEAR}

Clear

{PAUSE}

Pause

{CAPSLOCK}

CapsLock

{NUMLOCK}

NumLock

{DEL}

Delete

{ESC}

Esc

{PAGEUP}

PageUp

{PAGEDOWN}

PageDown

{PRINTSCREEN}

PrintScreen

{SCROLL}

ScrollLock

{LWIN}

Left Windows key

{RWIN}

Right Windows key

{APPS}

Application Key

 

Simultaneous virtual key codes.

If you want to press a simultaneous virtual key code and a virtual key code at the same time, combine them with the "+" operator.

Virtual Key Code

Corresponding Key

{SHIFT}

Shift

{CTRL}

Ctrl

{ALT}

Alt

 

 

ignoreCapsLock

 

Type:

Boolean

 

TRUE - Alphabets are passed as is regardless of the Caps Lock key ON/OFF state.

FALSE - When the CapsLock key is ON, the alphabet is passed with uppercase/lowercase reversed. Example: a becomes A, A becomes a

 

Return Value

 

 

Type:

Boolean

 

FALSE - Not pressed. TRUE - Pressed.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 


Supported


×

Script Action

○

Browser script

×

Calculation formula syntax

 

 


reference

 

RegisterHotKey

UnregisterHotKey