Results 1 to 5 of 5
  1. #1
    [CFGH]AhMaD's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Jerusalem/iSREAL
    Posts
    66
    Reputation
    10
    Thanks
    22
    My Mood
    Goofy

    CrossFire Spammer Source + Help

    Code:
    Public Class Form1
    
        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(TextBox1.Text())
            SendKeys.Send("{ENTER}")
        End Sub
    
        Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
            Dim starthotkey As Boolean
            Dim stophotkey As Boolean
            starthotkey = GetAsyncKeyState(Keys.F4)
            stophotkey = GetAsyncKeyState(Keys.F5)
            If starthotkey = True Then
                'Start
                Timer1.Enabled = True
            End If
            If stophotkey = True Then
                'Stop
                Timer1.Enabled = False
            End If
        End Sub
        Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    
        End Sub
    End Class
    and no any errors but when i debuge it gave me erorr on starthotkey = GetAsyncKeyState(Keys.F4)

    help me please

  2. #2
    Ege1234567890's Avatar
    Join Date
    Apr 2009
    Gender
    male
    Location
    Ankara
    Posts
    197
    Reputation
    10
    Thanks
    41
    My Mood
    Yeehaw
    (GetAsyncKeyState(VK_F4))

    change it like this..






    Quote Originally Posted by knightblizs View Post
    I do not know about it, I just copy / paste
    EPIC FAIL.!.



    A7med.love Rocks!!

  3. #3
    [CFGH]AhMaD's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Jerusalem/iSREAL
    Posts
    66
    Reputation
    10
    Thanks
    22
    My Mood
    Goofy
    Quote Originally Posted by Ege1234567890 View Post
    (GetAsyncKeyState(VK_F4))

    change it like this..
    k
    MSGTOBIG xDDD

    N OT WORK IT GAVE ME ERROR
    Last edited by [CFGH]AhMaD; 07-04-2011 at 01:25 AM.

  4. #4
    Takari's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Location
    Cross Fire Section
    Posts
    11,889
    Reputation
    574
    Thanks
    1,966
    My Mood
    Cool
    Try using something like this:
    Code:
     If GetAsyncKeyState(Keys.F4) Then
                Timer1.Enabled = True
    
            End If
    
            If GetAsyncKeyState(Keys.F5) Then
                Timer1.Enabled = False
            End If
        End Sub
    Don't forget to declare it.


    @[CFGH]AhMaD
    @Thunder
    @Ghost
    [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.

  5. #5
    [CFGH]AhMaD's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Jerusalem/iSREAL
    Posts
    66
    Reputation
    10
    Thanks
    22
    My Mood
    Goofy
    Quote Originally Posted by Takari View Post
    Try using something like this:
    Code:
     If GetAsyncKeyState(Keys.F4) Then
                Timer1.Enabled = True
    
            End If
    
            If GetAsyncKeyState(Keys.F5) Then
                Timer1.Enabled = False
            End If
        End Sub
    Don't forget to declare it.


    @[CFGH]AhMaD
    @Thunder
    @Ghost
    I D K it didnt work or i think i added on wrong place