Valid Key Codes for the Send Keys Action
Consider the following scenario: You need to increase the font-size in a Word document by pressing CTRL + SHIFT + '.', using the Send Keys Action.
In this case, you would want to simulate the dot key press, which is not the same as sending the dot character. To simulate key-presses inside a Send Keys Action, use the following notation:
{KeyCode}
where KeyCode is the capital form of the letter itself for letters A-Z, OemSemicolon for ';', Oemplus for '+', Oemcomma for ',', OemMinus for '-', OemPeriod for '.', OemQuestion for '?', Oemtilde for '~', OemOpenBrackets for '[', OemPipe for '|', etc. You will find the full list of the valid Key Codes at the bottom of this help topic.
To return back to the Word example, the font-size increase should be written as:
{Control}({Shift}({OemPeriod}))
To produce a colon ':' key press, you may use
{Shift}({OemSemicolon})
The same rule applies for other characters produced by pressing Shift + another key.
Full List of Valid Key Codes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|