VBS "spammer"

12,629

7

4

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...

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.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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("wscript.shell")

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

Share

Recommendations

  • Indoor Lighting Contest

    Indoor Lighting Contest
  • Make It Fly Challenge

    Make It Fly Challenge
  • Growing Beyond Earth Maker Contest

    Growing Beyond Earth Maker Contest

4 Discussions

0
None
Fearce1DylanP30

Reply 3 years ago

I can try.

what would you need help with?