Per fare un autoclick bisogna mettere :
2 Button;
1 Textbox;
1 Timer; (Con propieta Enabled = False e Interval = 1)
All'inizio del codice mettete:
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 MOUSELEFTDOWN = &H2
Private Const MOUSELEFTUP = &H4
Nel Bottone Che Sara Start:
Timer1.Interval = Textbox1.Text
Timer1.Enabled = True
Nel Bottone Che Sara Stop:
Timer1.Enabled = False
Nel Timer:
mouse event MOUSELEFTDOWN, 0, 0, 0, 0
mouse_event MOUSELEFTUP, 0, 0, 0, 0
2 Button;
1 Textbox;
1 Timer; (Con propieta Enabled = False e Interval = 1)
All'inizio del codice mettete:
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 MOUSELEFTDOWN = &H2
Private Const MOUSELEFTUP = &H4
Nel Bottone Che Sara Start:
Timer1.Interval = Textbox1.Text
Timer1.Enabled = True
Nel Bottone Che Sara Stop:
Timer1.Enabled = False
Nel Timer:
mouse event MOUSELEFTDOWN, 0, 0, 0, 0
mouse_event MOUSELEFTUP, 0, 0, 0, 0