Code :
SendKeys.Send("%{TAB}"); Clipboard.SetText(fromTextBox.Text); SendKeys.Send("^v"); for (int i = 0; i < 12313; i++) SendKeys.Send("{TAB}"); Clipboard.SetText(toTextBox1.Text); SendKeys.Send("^v"); As a result, the second text is inserted twice. Where is the mistake ?
Upd:
fromTextBox.Text = "В лесу родилась елочка"; toTextBox1.Text = "Росла она там"; The above code will insert in the field of another program:
She grew there Pile of Tabulations She grew there
I need:
Herringbone was born in the forest Pile of Tabulations She grew there