Sha256: 7474bccfcc5e1452e54fe2a98b29c4331e89f2accb56049318b2ec537698d579
Contents?: true
Size: 846 Bytes
Versions: 10
Compression:
Stored size: 846 Bytes
Contents
#include "stdafx.h" #include "Locator.h" #include "StringHelper.h" using namespace RAutomation::UIA::Controls; extern "C" { __declspec ( dllexport ) void Text_GetValue(const FindInformation& findInformation, char* theValue, const int maximumLength) { try { auto text = gcnew TextControl(Locator::FindFor(findInformation)); StringHelper::CopyToUnmanagedString(text->Value, theValue, maximumLength); } catch(Exception^ e) { Console::WriteLine("Text_GetValue: {0}", e->Message); } } __declspec ( dllexport ) void Text_SetValue(const FindInformation& findInformation, const char* theValue) { try { auto text = gcnew TextControl(Locator::FindFor(findInformation)); text->Value = gcnew String(theValue); } catch(Exception^ e) { Console::WriteLine("Text_SetValue: {0}", e->Message); } } }
Version data entries
10 entries across 10 versions & 1 rubygems