This tut is extremely simple, a good one for C# beginners =)
First create a new C# project by going to
File>New>C#>Windows Forms Application
Then add 1 timer, 3 textboxes, and 2 buttons.
First were gonna give your timer a code, double click on your timer and add this code
SendKeys.Send(textBox1.text);
SendKeys.Send("{ENTER}");
SendKeys.Send(textBox2.text);
SendKeys.Send("{ENTER}");
SendKeys.Send(textBox3.text);
SendKeys.Send("{ENTER}");
The SendKeys Function basically types out the text you specify.
Now rename one of your buttons to "Start", and give it the following code
timer1.Enabled = true;
This enabled the timer, which in return, starts spamming your text.
Then rename another one to "Stop", and give it the code below
timer1.Enabled = false;
This disables your times, which stops the spamming.
And ur done =D
How simple was that? :rolleyes:
Hope you learned a thing or two from this.
~kierien
Edited by Kierien, 31 January 2009 - 09:02 PM.


Sign In
Create Account


Back to top









