Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Interval = TextBox1.Text * 1000 + TextBox2.Text
AutoClick()
If GetAsyncKeyState(Keys.F5) Then
Timer1.Start()
End If
If GetAsyncKeyState(Keys.F6) Then
Timer1.Stop()
End If
End Sub
Dim F5key As Boolean
Dim F6key As Boolean
F5key = GetAsyncKeyState(Keys.F5)
F6key = GetAsyncKeyState(Keys.F6)
If F5key = True Then
'your code here to start other timer
End If
If F6key = True Then
F5key = False 'dont think you need this but i put anyways
'your code here yet again to turn off
End If
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Interval = TextBox1.Text * 1000 + TextBox2.Text
AutoClick()
Dim F5key As Boolean
Dim F6key As Boolean
F5key = GetAsyncKeyState(Keys.F5)
F6key = GetAsyncKeyState(Keys.F6)
If F5key = True Then
Timer1.Start()
End If
If F6key = True Then
F5key = False
Timer1.Stop()
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.interval = 1
Dim F5key As Boolean
Dim F6key As Boolean
F5key = GetAsyncKeyState(Keys.F5)
F6key = GetAsyncKeyState(Keys.F6)
If F5key = True Then
Timer1.Interval = TextBox1.Text * 1000 + TextBox2.Text
AutoClick()
End If
If F6key = True Then
timer1.interval = 1
'put your code here to stop whatever your doing
End If
End Sub
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As System.Int16) As Int16 'so its x64 bit compatible
Dim StartHotkey As Integer StartHotkey = GetAsyncKeyState(120) If StartHotkey <> 0 Then 'Your code here end if
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Timer1.Interval = TextBox1.Text * 1000 + TextBox2.Text
AutoClick()
Dim StartHotkey As Integer
StartHotkey = GetAsyncKeyState(120)
If StartHotkey <> 0 Then
Timer1.Start()
End If
Dim StopHotkey As Integer
StopHotkey = GetAsyncKeyState(121)
If StopHotkey <> 0 Then
Timer1.Stop()
End If
End Sub
Private Declare Function GetAsyncKeyState Lib "user32.dll" (ByVal vKey As System.Int16) As Int16