need help

Posts 1–6 of 6 · Page 1 of 1
need help
i wanna make a program that will spam my number 1 key
with a hotkey can some 1 give me a code
So your wanting to spam the number 1..?
Just put a textbox with 1 in it.
and then when the hotkey is pressed
sendkeys.send(textbox1.text)
Could you PLEASE give us a better description?
Quote Originally Posted by Jimmy View Post
i wanna make a program that will spam my number 1 key
with a hotkey can some 1 give me a code
First, Use the search button!

Search for hotkeys vb and spammer!
okay better way to explain this

i have a game and if u press the one button it will attack monsters randomly
so im not trying to type it im trying to get it to keep pressing the number 1 while i sleep
likea afk bot but it only spams 1 key like a bunny hopper
Ok simple.

I'll edit in the code in a minute.

Code:
'Made by Lolland at MPGH.net
Public Class Form1

    Private Sub SpamKey()
        SendKeys.Send(TextBox1.Text)

    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Interval = 1
        TextBox1.MaxLength = 1
    End Sub

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

        If TextBox1.Text = "" Then
            MsgBox("Error- You are stupid, enter a key to spam idot")
        Else
            Timer1.Start()
        End If
    End Sub

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

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Timer1.Stop()
    End Sub
End Class
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?