Wednesday, November 26, 2014

Keys and Key Combinations

Keys and Key Combinations

For the Keys argument, you can use keys or key combinations. You can type a character, such as "a" or use codes from the table below:
Key
Code
BACKSPACE
{BACKSPACE} or {BS}
BREAK
{BREAK}
CAPS LOCK
{CAPSLOCK}
CLEAR
{CLEAR}
DELETE or DEL
{DELETE} or {DEL}
DOWN ARROW
{DOWN}
END
{END}
ENTER (numeric keypad)
{ENTER}
ENTER
~ (tilde)
ESC
{ESCAPE} or {ESC}
HELP
{HELP}
HOME
{HOME}
INS
{INSERT}
LEFT ARROW
{LEFT}
NUM LOCK
{NUMLOCK}
PAGE DOWN
{PGDN}
PAGE UP
{PGUP}
RETURN
{RETURN}
RIGHT ARROW
{RIGHT}
SCROLL LOCK
{SCROLLLOCK}
TAB
{TAB}
UP ARROW
{UP}
F1 through F15
{F1} through {F15}
To combine keys with Ctrl, Shift and/or Alt, precede the character with the following codes. For example:
SendKeys "^{F2}"   ...for Ctrl+ F2


Key
Code
SHIFT
+ (plus sign)
CTRL
^ (caret)
ALT
% (percent sign)

No comments:

Post a Comment