I have my code and I'm trying to obtain the value from an input cell by selecting the text with double click, Click CTRL + C and use the clipboard to obtain the value in my code. I have problems because sometimes works and others not.
Code: Select all
//Double click to select all the text
numericEditor.Click();
numericEditor.Click();
Keyboard.Press("{CONTROL DOWN}{C}{CONTROL UP}");
var idata = Clipboard.GetDataObject();
int initialValue = Int32.Parse((string)idata.GetData(DataFormats.Text));
Thanks!