SourcePoint Intel Help

Table of Contents

keys

Simulate keyboard input from within a command file.

Syntax

keys("keystring" [, "keystring"]+)

Where:

keystring

is a key name:

ย 

F1-F12

ย 

control (ctrl), alt (menu), shift

ย 

up, down, left, right

ย 

insert, delete

ย 

home, end

ย 

pgup (next), pgdn (prior)

ย 

bs, tab, enter (return), esc, pause

ย 

apps (displays context menu)

ย 

One or more of the following characters:

ย 

ย ย ย ย ย a-z

ย 

ย ย ย ย ย A-Z

ย 

ย ย ย ย ย 0-9

ย 

ย ย ย ย ย ` ~ ! @ # $ % ^ & * ( )

ย 

ย ย ย ย ย _ = + [ ] { } \ | ; : ' "

ย 

ย ย ย ย ย , . < > / ? (space)

Discussion

The keys function is used to simulate keyboard input from within a command file. The three mode keys (Control, Alt, and Shift) apply to all the rest of the keys in the command, e.g., keys ("ctrl", "f", "g") simulate pressing the keys ctrl-f followed by ctrl-g, not ctrl-f followed by a "g". Simple, single character keys can be combined within a single keystring, e.g., keys("123") is the same as keys("1", "2", "3"). ย 

Examples

Command input:

keys("alt", "v", "c") ย ย ย ย ย ย ย ย ย ย // opens a Code window

Command input:

keys("ctrl", "f") ย ย ย ย ย ย ย ย ย ย ย ย ย ย // opens the Find dialog box
keys("123", "enter") ย ย ย ย ย ย ย ย ย ย ย // searches for the string 123

ย