To specify characters that do not appear when you press a key (such as Enter or Tab), and a key that represents an action without representing a character, use the code in the following table:
Key |
Code |
Backspace |
{BACKSPACE}, {BS}, or {BKSP} |
Break |
{Break} |
Caps Lock |
{CAPSLOCK} |
Del or Delete |
{DELETE} or {DEL} |
Down ARROW |
{Down} |
End |
{END} |
Enter |
{ENTER} or ~ |
Esc |
{ESC} |
Help |
{Help} |
Home |
{HOME} |
Ins or Inserts |
{INSERT} or {INS} |
Left Arrow |
{left} |
Num Lock |
{NumLock} |
Page down |
{PGDN} |
Page up |
{PgUp} |
Print screen |
{PRTSC} (reserved for future use) |
Right Arrow |
{Right} |
Scroll Lock |
{ScrollLock} |
Tab |
{TAB} |
Up ARROW |
{Up} |
F1 |
{F1} |
F2 |
{F2} |
F3 |
{F3} |
F4 |
{F4} |
F5 |
{F5} |
F6 |
{F6} |
F7 |
{F7} |
F8 |
{F8} |
F9 |
{F9} |
F10 |
{F10} |
F11 |
{F11} |
F12 |
{F12} |
F13 |
{F13} |
F14 |
{F14} |
F15 |
{F15} |
F16 |
{F16} |
Numeric keypad Plus |
{ADD} |
Numeric keypad minus sign |
{SUBTRACT} |
Digital keypad multiplication Sign |
{MULTIPLY} |
Digital Keypad Division Sign |
{DIVIDE} |
To specify keys to be used with any combination of the Shift, Ctrl, and ALT keys, precede the key codes with one or more of the following code.
Key |
Code |
Shift |
+ |
Ctrl |
^ |
Alt |
% |
To specify that any combination of the shift, CTRL, and ALT keys should be held while pressing some keys, enclose the code for those keys in parentheses. For example, to specify that you hold down the Shift key while pressing E and C, use "+ (EC)". To specify that you hold down SHIFT while you press E, and then press C without holding down SHIFT, use +EC.
To specify duplicate keys, use the format {key number}. A space must be placed between the key and the number. For example, {left 42} indicates a 42-click arrow, and {h 10} represents 10 times per h.
Bill: send keyboard instruction System.Windows.Forms.SendKeys.Send