For VB 6
Components:
TextBox
Name: textbox
Text: Message
TextBox
Name: Text1
Message: Time
Command Button
Name: Command1
Text: Start
Command Button
Name:Command 2
Text: Stop
Timer
Name: Timer1
Enabled: False
Right click anywhere on the form, and type in this code:
And ur done
Components:
TextBox
Name: textbox
Text: Message
TextBox
Name: Text1
Message: Time
Command Button
Name: Command1
Text: Start
Command Button
Name:Command 2
Text: Stop
Timer
Name: Timer1
Enabled: False
Right click anywhere on the form, and type in this code:
Code:
Private Sub Command1_Click()
Timer1.Interval = Text1 * 1000
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
SendKeys textbox
SendKeys "{enter}"
End Sub
And ur done
















