Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
TrackBar1.Maximum = 10
TrackBar1.Minimum = 0
If TrackBar1.Value = 1 Then
Timer1.Interval = 2000
Timer1.Enabled = True
ElseIf TrackBar1.Value = 2 Then
Timer1.Interval = 1700
Timer1.Enabled = True
ElseIf TrackBar1.Value = 3 Then
Timer1.Interval = 1500
Timer1.Enabled = True
ElseIf TrackBar1.Value = 4 Then
Timer1.Interval = 1200
Timer1.Enabled = True
ElseIf TrackBar1.Value = 5 Then
Timer1.Interval = 1000
Timer1.Enabled = True
ElseIf TrackBar1.Value = 6 Then
Timer1.Interval = 800
Timer1.Enabled = True
ElseIf TrackBar1.Value = 7 Then
Timer1.Interval = 500
Timer1.Enabled = True
ElseIf TrackBar1.Value = 8 Then
Timer1.Interval = 200
Timer1.Enabled = True
ElseIf TrackBar1.Value = 9 Then
Timer1.Interval = 100
Timer1.Enabled = True
ElseIf TrackBar1.Value = 10 Then
Timer1.Interval = 50
Timer1.Enabled = True
End If
End Sub
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs)
SendKeys.Send(TextBox1.Text)
SendKeys.Send("{enter}")
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
TrackBar1.Enabled = False
End Sub
End Class