JavaJFCTextField.
Sends a set of keystrokes or mouse button presses to the window when used with the Classic Agent.
Sends a set of keystrokes to the window when used with the Open Agent.
window.TypeKeys (sEvents [, nDelay, useClipboard])
Variable | Description |
---|---|
sEvents | The keystrokes to type or mouse buttons to press. Mouse buttons are supported on the Classic Agent only. To specify mouse buttons, use <Button1>, <Button2>, or <Button3> in the string. STRING. |
nDelay | Optional: The delay between keystrokes (in seconds and fractions of seconds). NUMBER. |
useClipboard | Optional: Whether Silk Test Classic uses the new Clipboard method to send text. By default, this is set to FALSE and the original method, which is faster, is used. If you want to send special characters, we recommend setting the parameter to TRUE to use the slower Clipboard method. BOOLEAN. |
//shift-right will be executed 6 times TextEditor.Document.TypeKeys ("<Shift-Right 6>")
//Shift-Right will be executed 6 times with a delay of 3 seconds before each execution, and uses the Clipboard method TextEditor.Document.TypeKeys ("<Shift-Right 6>", 3, TRUE)