
skate4lifee
Newbie
Jul 27, 2007, 1:27 PM
Post #8 of 8
(193 views)
Shortcut
|
An Auto Typer in Vb 2005 isnt very different from vb6, the only difference is in vb6 you use sendkeys and in vb 2005 you use sendkeys.send from that one tutorial on the auto typer so this would be vb 2005 code of an auto typer Make 2 text boxes and 2 Buttons and 1 Timer Public Class Form1 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick SendKeys.Send(TextBox1.Text) SendKeys.Send("{enter}") End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Interval = TextBox2.Text * 1000 Timer1.Enabled = True End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Timer1.Enabled = False End Sub End Class And there you have it, a simple auto typer
|