ZennoLab Assemblies Documentation
KeyEvent Method
Example 
ZennoLab.CommandCenter Namespace > Tab Class : KeyEvent Method

Type: System.String

The key for event. For addtional characters you can use enumeration members from https://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx

Type: System.String

The type of key event. It can be "down", "press" or "up".

Type: System.String

The key modifier for key event. It can be "alt", "ctrl", "shift", or empty string (not use the key modifier).

Performs the key event inside the current tab.
Syntax
public void KeyEvent( 
   string key,
   string keyEvent,
   string keyModifer
)

Parameters

key

Type: System.String

The key for event. For addtional characters you can use enumeration members from https://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx

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).

Example
The following code example demonstrates uses of the keyEvent method.
// performs the press key event with modifier
instance.ActiveTab.KeyEvent("a", "press", "ctrl");
// performs the press key event with modifier
$instance->ActiveTab->KeyEvent("a", "press", "ctrl");
Requirements

Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.

See Also

Reference

Tab Class
Tab Members
MouseClick Method
MouseMove Method
MouseWheel Method