Argument | Description |
object | A test object of type AcxButton. |
KeyboardInput | Required. A String value. The text string and/or constants representing non-alphanumeric keys. The following constants are available: |
To type keyboard input on a open window, use .Type command
e.g. Following Example will type ALT+ F action in notepad document.Window("Notepad").Activate
Window("Notepad").WinEditor(“Edit”).Type micAltDwn + "F" +micAltUp
Note:- For all type keyword please see below (reference Quicktest Professional help)
Note:- If .type method doesn't works then its worth trying DeviceReplay
'Here is an example that does the same thing above, but used DeviceReplay.
Set obj = CreateObject(“Mercury.DeviceReplay”)
Window("Notepad").Activate
obj.PressKey 63
No comments:
Post a Comment