LetMeBot
Get full acces now! Register for free!

Got questions? Or you can't make an account?

Email to this email adress: support@letmebot.com

Visual Basic Auto Clicker

Go down

Visual Basic Auto Clicker

Post by Bnoit on February 2nd 2011, 6:58 pm

Code for and auto clicker (basic code)


Code:

Public Class Form1
    Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cbuttons As Long, ByVal dwExtraInfo As Long)
    Private Const mouseclickup = 4
    Private Const mouseclickdown = 2
    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
        mouse_event(mouseclickdown, 0, 0, 0, 0)
        mouse_event(mouseclickup, 0, 0, 0, 0)
        ' set the interval to 1!
    End Sub
End Class


As you can see you need 2 buttons and a timer Smile
avatar
Bnoit
Administrizzy & Bot Programmer
Administrizzy & Bot Programmer

Posts : 85
Join date : 2010-10-04
Age : 28
Location : Belgium

View user profile http://hackforlife.highforum.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum