Jump to content

Chat spammer

- - - - -

  • Please log in to reply
16 replies to this topic

#1
Demon

Demon

    Newbie

  • Members
  • PipPip
  • 18 posts
Basic overview

What this will do is send multiple spams written in a text box after the start button is pressed and stop after the second button is pressed. This makes use of basic timer skills and the send keys command.

What you'll need

2 buttons
1 text box
1 timer

Placement

How ever you'd like I'm going to place the 2 buttons under the text box.

Code

For the start button the code would make the timer start:

Timer1.Start()

For the stop button it would make the timer stop:

Timer1.Stop()

And for the timer since it will send the keys in the text box till stopped the code will be:

Sendkeys.Send[Textbox1.Text] Sendkeys.Send("{ENTER}')

And it's as simple as that.

#2
Jarryd

Jarryd

    Learning Programmer

  • Members
  • PipPipPip
  • 63 posts
To make it a little more advanced, you could allow the user to change the timer interval:

        Timer1.Interval = NumericUpDown1.Value()

That little line of code will allow the user to change the value of the "NumericUpDown", and it will make the spammer go at the speed.

#3
CuzImAwesome

CuzImAwesome

    Newbie

  • Members
  • PipPip
  • 25 posts
Or:
Timer1.Interval = TextBox2.Text

Just type in the interval.

#4
Buffer_overflow

Buffer_overflow

    Newbie

  • Members
  • PipPip
  • 10 posts
I've tried in my visual studio and i got this error

Error 1 Argument not specified for parameter 'keys' of 'Public Shared Sub Send(keys As String)'. C:\Users\xxxxxx\Documents\Visual Studio 2010\Projects\WindowsApplication5\WindowsApplication5\Form1.vb 16 9 WindowsApplication5


Error 2 Bracketed identifier is missing closing ']'. C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\WindowsApplication5\WindowsApplication5\Form1.vb 16 22 WindowsApplication5

#5
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts

Quote

I've tried in my visual studio and i got this error

Error 1 Argument not specified for parameter 'keys' of 'Public Shared Sub Send(keys As String)'. C:\Users\xxxxxx\Documents\Visual Studio 2010\Projects\WindowsApplication5\WindowsApplicati on5\Form1.vb 16 9 WindowsApplication5


Error 2 Bracketed identifier is missing closing ']'. C:\Users\xxxxx\Documents\Visual Studio 2010\Projects\WindowsApplication5\WindowsApplicati on5\Form1.vb 16 22 WindowsApplication5
Your problem is the quote's around ENTER are messed up, its written: "ENTER' <-- see the one '? It should look like this:
SendKeys.Send(TextBox1.Text)
        SendKeys.Send([B]"[/B]{ENTER}[B]"[/B])
Hope that solves it for you. :)
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.

#6
Buffer_overflow

Buffer_overflow

    Newbie

  • Members
  • PipPip
  • 10 posts
What i need to put in ENTER??
N00b question, but please help me..

#7
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,124 posts
  • Location:Vancouver, Eh! Cleverness: 200

Buffer_overflow said:

What i need to put in ENTER??
N00b question, but please help me..
Hi, The {ENTER} phrase in Visual Basic signifies the enter key, so it simulates pressing enter and sends it.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#8
pijatron

pijatron

    Newbie

  • Members
  • Pip
  • 3 posts
hmm looks nice think ill start of with somethuing simple like this here spammer. thanks

#9
pijatron

pijatron

    Newbie

  • Members
  • Pip
  • 3 posts
hey guys i got everything down buyt i have 1 small error

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Sendkeys.Send(Textbox1.Text) SendKeys.Send("{ENTER}")
End Sub

the error says end ofstatement expected........
a lil help pls...thanks.

#10
Demon

Demon

    Newbie

  • Members
  • PipPip
  • 18 posts

pijatron said:

hey guys i got everything down buyt i have 1 small error

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Sendkeys.Send(Textbox1.Text) SendKeys.Send("{ENTER}")
End Sub

the error says end ofstatement expected........
a lil help pls...thanks.

Have you tried an and or +?

#11
Nonja

Nonja

    Newbie

  • Members
  • Pip
  • 3 posts
What exactly should I see happen after entering text in the textbox then clicking start? The only thing that happens is my computer gets super laggy until I click Stop.

Here's my code:
Public Class Form1


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Timer1.Start()

    End Sub


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Timer1.Stop()

    End Sub


    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        SendKeys.Send(TextBox1.Text)

        SendKeys.Send("{Enter}")

    End Sub

End Class


I'm brand spanking new to VB so thanks for any help!

#12
Demon

Demon

    Newbie

  • Members
  • PipPip
  • 18 posts

Nonja said:

What exactly should I see happen after entering text in the textbox then clicking start? The only thing that happens is my computer gets super laggy until I click Stop.

Here's my code:
Public Class Form1


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Timer1.Start()

    End Sub


    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        Timer1.Stop()

    End Sub


    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

        SendKeys.Send(TextBox1.Text)

        SendKeys.Send("{Enter}")

    End Sub

End Class


I'm brand spanking new to VB so thanks for any help!

You can add a me.hide() statement on the start button,but what should happen is it'll send the keys in the text box,for example if you have a chat text box selected after it's started then it will spam.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users