Method KeyDown
Presses and holds any single key (number) in the ApplicationUsage
Function KeyDown(
String Key,
Boolean Report [Optional]
)
Parameters
Key
Type: String
Key (character) to press
Report (Optional)
Type: Boolean
Default value: true
Report this step to results
Returns
No return value
Example
VBScript
Application("Demo").View("DemoView").Object("DemoObject1").Click
Application("Demo").KeyDown "A"
Application("Demo").View("DemoView").Object("DemoObject2").Click
Application("Demo").KeyUp "A"
JavaScript
Application("Demo").View("DemoView").Object("DemoObject1").Click();
Application("Demo").KeyDown("A");
Application("Demo").View("DemoView").Object("DemoObject2").Click();
Application("Demo").KeyUp("A");
Comment
Down "A" key