View Single Post
Old Mar 8th, 2006, 10:12 AM   #3
Pissi
Newbie
 
Join Date: Oct 2005
Posts: 9
Rep Power: 0 Pissi is on a distinguished road
I can help you.

I have made plenty of autotalkers, all being pretty much the same. Heres the simple way of making one:

Make:

2 Textboxes called Text1 and Text2 where Text1 will have the text you need to auto inside and Text2 for the interval.
2 command buttons called Command1 and Command2 with the captions Start and Stop
Timer called Timer1 and have enabled=false in the properties window.


Next add this code to your form:
Code:
Private Sub Timer1_Timer()
Timer1.Interval = Text2.Text
SendKeys Text1.Text
SendKeys "{enter}"
End Sub

Private Sub Command1_Click()
Timer1.Enabled = True
End Sub

Private Sub Command2_Click()
Timer1.Enabled = False
End Sub


Note that 1000 in the interval box = 1 second and 100 will be every 10th of a second etc...

Any problems? Email me at chris@programscape.org
Pissi is offline   Reply With Quote