ZennoLab Assemblies Documentation
KeyEvent Method
See Also  Example Send Feedback
ZennoLab.CommandCenter Assembly > ZennoLab.CommandCenter Namespace > Tab Class : KeyEvent Method
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).

Glossary Item Box

Performs the key event inside the current tab.

Syntax

C# 
public void KeyEvent( 
   string key,
   string keyEvent,
   string keyModifer
)

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

Example

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");
PHPCopy Code
// performs the press key event with modifier
$instance->ActiveTab->KeyEvent("a", "press", "ctrl");

Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.