Simulate key strokes using the keyboard.

Namespace:  QAliber.Engine.Controls
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public virtual void Write(
	string text
)
Visual Basic (Declaration)
Public Overridable Sub Write ( _
	text As String _
)
Visual C++
public:
virtual void Write(
	String^ text
)

Parameters

text
Type: System..::.String
Text to send

Remarks

Unicode is supported, to group keys together use '()' braces, to send special keys enclose them with '{}' braces

Examples

This example will open notepad and send "Hello WORLD" keys , since it is expected to be focused.
CopyC#
System.Diagnostics.Process.Start("notepad");
UIAWindow notepadWin = Desktop.UIA[@"Untitled - Notepad", @"Notepad", @"UIAWindow"] as UIAWindow;
notepadWin.Write("({RightShift}h)ello ({RightShift}world)");

See Also