ZennoLab Assemblies Documentation
ErrorDetected Property
See Also  Example Send Feedback
ZennoLab.Emulation Assembly > ZennoLab.Emulation Namespace > Emulator Class : ErrorDetected Property

Glossary Item Box

Gets information about the error detected in the performance last command.

Syntax

C# 
public static bool ErrorDetected {get;}

Property Value

Type: System.Boolean

true if error detected in the performance last command; otherwise, false.

Example

The following code example demonstrates uses of the ErrorDetected property.
C#Copy Code
// send the text
string result = Emulator.SendText("Window", 200, 200, "it's a simple text for send");
// if error detected
if (Emulator.ErrorDetected) return "Fail";
return "Text was sent";
PHPCopy Code
// send the text
$result = ZennoLab\Emulation\Emulator::SendText("Window", 200, 200, "it's a simple text for send");
// if error detected
if (ZennoLab\Emulation\Emulator::ErrorDetected) return "Fail";
return "Text was sent";

Requirements

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

See Also

© 2014 All Rights Reserved.