Hello this is my first tutorial post here and I am going to teach you how to make a nice little text spammer. Basically what this does is sends what ever you type into the box into any chat, notepad, or pretty much anything that can be typed in! Lets get started.
First off I will be using Visual Basic 2008 Express Edition for all my tutorials that I post. To get it please visit the link below, and click download on the Visual Basic 2008 Express Edition box.
Setting up the form:Code:http://www.microsoft.com/express/download/#webInstall
To start make a new project, and select windows forms application.
Then place the following onto your form1, and try to make it look somewhat like this.
The red blocks are where you place labels. The red one with nothing in it is a blank label put close to the equal sign. The first one is just telling the user what to type in the box.
The blue blocks are buttons, named &Start, and &Stop. If you didn't know if you place & before the starting letter it will underline that letter for you.
The yellow block is a blank textbox.
The black block is a trackbar.
Go to the trackbar's properties tab and make the value 1, and the maximum 1000. Here is what it should look like.
The purple block is a tool strip. Make it have a status label with a text of Error!
Now you need to just add two timers and your form is ready to be coded!
After you have added the timers click them once and look to the right for their properties tab. Make the "Interval" number to 1 like is shown below.
The coding:
To start off double click on your Start button.
When you click this it will take you to the "back bone" of your program, the coding section!
The code for the Start button is very simple. I will post it below then explain it.
Ok this is what it all means. "Timer1.Enabled = True" starts the timer (which we will code later on) and it begins to "tick" which means it is outputting something as many times as you tell it to. ToolStripStatusLabel1.Text = "On..." means that when you click the Start button it will make it say On... at the bottom of the program just to let you know it is on.Code:Timer1.Enabled = True ToolStripStatusLabel1.Text = "On..."
This is all the coding that is needed under the Start button. Go back to the form desing and double click the Stop button.
The coding for the Stop button is very similar to the Start button so I won't explain it.
Next double click on timer1, it can be found a little bit below your form1 design.Code:Timer1.Enabled = False ToolStripStatusLabel1.Text = "Off..."
The code in this section is what "sends out" the message you want to spam.
Next you need to double click on your forms close button (the one you use to exit any program), this will bring you to the form load code section. This code runs as soon as the program is ran. It does not need explained as I have done it before.Code:SendKeys.Send(TextBox1.Text) SendKeys.Send("{ENTER}") Timer1.Interval = TrackBar1.Value
The last bit of coding is the timer2 code. Double click on timer2 (next to timer1 on form design).Code:Timer2.Enabled = True ToolStripStatusLabel1.Text = "Off..."
This code takes the value from the track bar and displays it on the form so it shows Speed = 1, all the way up to Speed = 1000. Label3.update() updates it's text everytime it is changed.Code:Label3.Update() Label3.Text = TrackBar1.Value
The conclusion:
To get access to your program goto file, save all, and choose a folder to save all your program information in. Next look for build, click the build option that appears. After this click build then publish, select a directory and click finish. If you click next just go back because you don't need to change any more settings. Then goto
In this folder look for a filetype named Application and run it, this will load your program so just copy that to your desktop for easy access.Code:C:\Users\YOURUSERNAME\Documents\Visual Studio 2008\Projects\PROGRAMNAME\PROGRAMNAME\PROGRAMNAME\bin\debug\
This was my first tutorial ever so I am sorry if it is a little hard to read/understand. Please comment on it and tell me if it was useful or not, and also post any problems/questions you may have!










Reply With Quote




).
