Sha256: 4dbd6000b0ec6844abef574b6ee962c8516639f12ee2e00e633759173fdebd82
Contents?: true
Size: 780 Bytes
Versions: 2
Compression:
Stored size: 780 Bytes
Contents
#include "StdAfx.h" #include "AutomationControl.h" #include "AutomationFinder.h" AutomationControl::AutomationControl(const HWND windowHandle) { _control = AutomationElement::FromHandle(IntPtr(windowHandle)); } AutomationControl::AutomationControl(const FindInformation& findInformation) { try { auto rootElement = AutomationElement::FromHandle(IntPtr(findInformation.rootWindow)); auto finder = gcnew AutomationFinder(rootElement); _control = finder->Find(findInformation); } catch(Exception^ e) { Debug::WriteLine("AutomationControl error: {0}", e->Message); } } void AutomationControl::Value::set(String^ value) { AsValuePattern->SetValue(value); } String^ AutomationControl::Value::get() { return AsValuePattern->Current.Value; }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rautomation-0.9.1 | ext/UiaDll/UiaDll/AutomationControl.cpp |
rautomation-0.9.0 | ext/UiaDll/UiaDll/AutomationControl.cpp |