Sha256: 6d7edba84ab2a27bb90a6a6ce5fbf53411441e26376db793572b7cafa6501b06
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
#include "StdAfx.h" #include "AutomatedText.h" String^ AutomatedText::Text::get() { if( IsValuePattern ) { return Value; } else { return AsTextPattern->DocumentRange->GetText(-1); } } void AutomatedText::Text::set(String^ value) { if( IsValuePattern ) { Value = value; } else { _control->SetFocus(); SendKeys::SendWait("^{HOME}"); // Move to start of control SendKeys::SendWait("^+{END}"); // Select everything SendKeys::SendWait("{DEL}"); // Delete selection SendKeys::SendWait(value); } }
Version data entries
4 entries across 4 versions & 1 rubygems