|
Send Keys
|
Top Previous Next |
|
One or more characters represent each key. To specify a single keyboard character, use the character itself. For example, to represent the letter A, use "a" for keytext. If you want to represent more than one character, append each additional character to the one preceding it. To represent the letters A, B, and C, use "ABC" for keytext. The plus sign (+), percent sign (%), tilde (~), and parentheses () have special meanings to SendKeys. To specify one of these characters, enclose it inside braces. For example, to specify the plus sign, use {+}. Brackets ([ ]) have no special meaning to SendKeys, but you must enclose them in braces as well, because in other applications for Microsoft Windows brackets do have special meaning that may be significant when dynamic data exchange (DDE) occurs. To send brace characters use { { } and { } }.
To specify characters that aren't displayed when you press a key (such as ENTER or TAB) and keys that represent actions rather than characters, use the codes shown below.
|