This code is continuously sending a string. I need a solution which can send the supplied string only once by clicking a button in the window which has the focus.
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SendKeys.Send("This is a test...");
}
}