public partial class AutoMessageTimer : Form { public AutoMessageTimer() { InitializeComponent(); } private void SetTime() { timerMessage.Interval = Convert.ToInt32(txtTimer.Text); } private void btnStart_Click(object sender, EventArgs e) { timerMessage.Enabled = true; SetTime(); } private void btnStop_Click(object sender, EventArgs e) { timerMessage.Enabled = false; SetTime(); } private void timerMessage_Tick(object sender, EventArgs e) { SendKeys.Send(txtMessage.Text + "{enter}"); } private void btnExit_Click(object sender, EventArgs e) { this.Close(); // Application.Exit(); } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)