Alright im Going to show you how to make a basic auto-clicker in vb.net.
First make a New Windows Form application.
Name it "Autoclicker"
(Or Whatever you want the name to be)
Lets get started,
Make 5 buttons, change the text of them to
Start
Stop
Slow
Normal
Fast
Now position them where you want them if you haven't already.
Now add a timer,
Double Click "Timer1" At the bottom to bring up the code for it.
Put this in
Code:
mouse_event(mouseclickup, 0, 0, 0, 0)
mouse_event(mouseclickdown, 0, 0, 0, 0)
That will simulate a Click.
Now At the top where it says
Public Class Form1
Make it
Code:
Public Class Form1
Private Declare Sub mouse_event Lib "user32" (ByVal dwflags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cbuttons As Integer, ByVal dwextrainfo As Integer)
Private Const mouseclickup = 4
Private Const mouseclickdown = 2
Double click the button "Start"
and add this code
Code:
Timer1.enabled = True()
Now double click Stop and put this code in
Code:
Timer1.Enabled = False()
Now double Click Slow
Add This code
Code:
Timer1.interval = Enter how fast you want it to click in milliseconds, ex 500
And the same for normal, and fast.
I recomend
Slow
Code:
Timer1.interval = 2000
normal
Code:
Timer1.interval = 500
Fast
Code:
Timer1.interval = 10
Or if you want the user to enter it manually dont add the slow, normal and fast buttons,
Instead add a textbox
Then Double Click Start
And put this in,
Code:
Timer1.Interval = (Textbox1.text)
Timer1.Enabled = True
Thanks for reading and i hope you learned a little about vb.net from this!!