Introduction: VBS "spammer"

About: I like to take things apart, see how they work, then put them back together; Or mod them to do other things. My hobbies are fulfilled with electronics, computers, making things, and lots of other things that s…

This instructable will make use of Visual Basic Scripting, or more commonly known as "VBS".

This code also utilizes Windows script host .

So on with the fun!

So this is one (limited) method of sending a msg to a chat repeatedly ("Spamming" or "Scrolling").

It basically prompts you what text to send, how many times you want to send it, and how long to wait before it starts sending the given text.

Step 1: .VBS File Extension

Here is the code

'This sends txt via the sendkeys statement to what txtarea has focus at the time
'Repeatedly until the variable 'mynum' is reached

set a = createobject("")

mytxt=inputbox("Send what text?","Type some text","Oh Yeah!") mynum=inputbox("How many times to send the text?","spamnumber","3") myspeed=inputbox("How fast to spam..In milisecs!","delay","200") mywait=inputbox("Time to wait proir to sending the spam msg in secs","Wait?","5")

msgbox("You have " & mywait & " secs to put focus on your target text area!") wscript.sleep (mywait*1000) for i=1 to mynum 'count down from mynum variable a.sendkeys (mytxt) 'Sends the text you typed in the mytxt prompt a.sendkeys ("{ENTER}") 'presses the enter key to send your text you may change it to the apropriate key that sends the msg in your chat wscript.sleep (myspeed) 'sleeps OR waits the amount of Milseconds you typed in the Mywait prompt next msgbox("Finished Spamming!")


The code about is well commented, as to describe what each line of code is doing.

There isn't much to this as you can see, so it's fairly comprehensible and should not need much explaining.

You could "Copy & Paste" the code into "Notepad" then choose to "Save As" select "All Files" & then name it "chatspammer.vbs" or you could just download it below.

I've attached the .vbs (code) file, and uploaded it to this here instructable.

Simply download it and open it to run the code.

You could also "Right Click " the file and choose "edit" then select "notepad" to edit/view the code.

Coded Creations

Participated in the
Coded Creations