Results 1 to 7 of 7
  1. #1
    Takari's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Cross Fire Section
    Posts
    11,889
    Reputation
    574
    Thanks
    1,966
    My Mood
    Cool

    Spammer Source Code

    I will Explain the Source Code.
    The Spammer have Hotkeys Included.

    So first we need to Declare the GetAsyncKeyState.
    For 32 bits users:
    Code:
     Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
        Dim result As Integer
    For 64 bits users:
    Code:
     Public Declare Function GetAsyncKeyState Lib "user64" (ByVal vKey As Long) As Integer
        Dim result As Integer
    We finished declaring the GetAsyncKeyState.Now let's move to Button1.We need to make button when,that when we press it the timer starts.
    Code:
       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Timer1.Enabled = True
        End Sub
    Let's continue with button2.Now we will make this so the timer will stop.
    Code:
     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Timer1.Enabled = False
        End Sub
    Now for the timer we are saying,that the timer will check what's written in the richtextbox1 and will type it everywhere.
    Code:
     Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            SendKeys.Send(RichTextBox1.Text)
            SendKeys.Send("{Enter}")
        End Sub
    Now for the hotkeys.We are saying,that if the user input the F7 key,it will start.If the user input the F8 key then it will stop.
    Code:
     Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            If GetAsyncKeyState(Keys.F7) Then
                Timer1.Enabled = True
    
            End If
    
            If GetAsyncKeyState(Keys.F8) Then
                Timer1.Enabled = False
            End If
        End Sub
    ----------------------------------------------------------------------------------------------------------------------------------
    Final Code:
    Code:
    Public Class spammer
        Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
        Dim result As Integer
    
        Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
            Timer1.Enabled = True
        End Sub
    
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Timer1.Enabled = False
        End Sub
    
        Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
            SendKeys.Send(RichTextBox1.Text)
            SendKeys.Send("{Enter}")
        End Sub
    
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            If GetAsyncKeyState(Keys.F7) Then
                Timer1.Enabled = True
    
            End If
    
            If GetAsyncKeyState(Keys.F8) Then
                Timer1.Enabled = False
            End If
        End Sub
    [IMG]https://i1114.photobucke*****m/albums/k538/ImminentJM/takari.png[/IMG]




     
    Goal:
    10,000 Posts - 10/13/2011
    Become Minion - Not Done
    Become Donator - 07/29/2011
    1000 Thanks - Done - 07/25/2011
    2000 Thanks - Not Done
    Thanks Archangel for my 1,000 Thanks.
    Thanks Keroaplt for my Signature.

  2. #2
    XarutoUsoCrack's Avatar
    Join Date
    Apr 2011
    Gender
    male
    Location
    CFAL Honra & Glória Server
    Posts
    1,087
    Reputation
    51
    Thanks
    2,543
    My Mood
    Relaxed
    this its for C or C++ i not understand nothing you no explic!

  3. #3
    Archangel's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Between Both Worlds
    Posts
    8,866
    Reputation
    1021
    Thanks
    9,003
    My Mood
    Angelic
    its .NET (visual basic)

  4. #4
    NoJustice's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    I don't care about CF
    Posts
    2,878
    Reputation
    123
    Thanks
    1,752
    My Mood
    Bored
    Quote Originally Posted by Archangel View Post
    its .NET (visual basic)
    Just about to say .

    I might post one for C++.

  5. #5
    Ghost Rider.'s Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    PickaMaterina
    Posts
    200
    Reputation
    22
    Thanks
    315
    My Mood
    Aggressive
    nice,but i know that!
    This is for beginers!


  6. #6
    A$IAN's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Germany
    Posts
    5,654
    Reputation
    274
    Thanks
    2,010
    My Mood
    Amused
    This is for beginners and useful for others
    ~Donater since 19th October 2011~
    ~Ex-Crossfire Minion || Resigned on 4th February 2012 ~
    Da fuck

  7. #7
    Royku's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    G-Force.dll
    Posts
    3,015
    Reputation
    381
    Thanks
    3,308
    My Mood
    Devilish
    Nice Man