ext/UiaDll/UiaDll/ElementStructures.h in uia-0.1.3.1 vs ext/UiaDll/UiaDll/ElementStructures.h in uia-0.2

- old
+ new

@@ -11,10 +11,14 @@ int number; char* string; int* numbers; int numbersCount; + _SearchCondition(const int id) : string(NULL), numbers(NULL) { + Reset(id); + } + _SearchCondition(const int id, const char* s) : string(NULL), numbers(NULL) { Reset(id); auto length = strnlen_s(s, 10000); auto size = length + 1; @@ -42,9 +46,19 @@ return NULL != numbers; } bool IsString() { return NULL != string; + } + + bool IsPatternAvailableProperty() { + try { + auto automationProperty = System::Windows::Automation::AutomationProperty::LookupById(propertyId); + return automationProperty->ProgrammaticName->Contains("PatternAvailableProperty"); + } catch(Exception^ e) { + Console::WriteLine(e->Message); + return false; + } } static _SearchCondition* FromControlTypes(list<const int>& controlTypes) { return new SearchCondition(System::Windows::Automation::AutomationElement::ControlTypeProperty->Id, controlTypes); }