For all that wonder how the code is: - Don't think all the sleeps are need but...
Code:
private void sendText()
{
int i = 0;
foreach (string a in richTextBox1.Lines)
{
try
{
Clipboard.SetText(richTextBox1.Lines[i]);
}
catch { }
System.Threading.Thread.Sleep(100);
SendKeys.SendWait("T");
System.Threading.Thread.Sleep(200);
SendKeys.Send("^v");
System.Threading.Thread.Sleep(200);
SendKeys.Send("{Enter}");
System.Threading.Thread.Sleep(400);
i++;
}
}
NOTE:
Well, I did it a bit the hard way...
You could replace the int stuff with just the a, since that is the text string X,x