Parameters
- key
Type: System.String
The key for event.
- keyEvent
Type: System.String
The type of key event. It can be "down", "press" or "up".
- keyModifer
Type: System.String
The key modifier for key event. It can be "alt", "ctrl", "shift", or empty string (not use the key modifier).
The following code example demonstrates uses of the keyEvent method.
| C# | Copy Code |
|---|---|
// performs the press key event with modifier instance.ActiveTab.KeyEvent("a", "press", "ctrl"); | |
| PHP | Copy Code |
|---|---|
// performs the press key event with modifier $instance->ActiveTab->KeyEvent("a", "press", "ctrl"); | |
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family