Advertisement
NiCz

How to Make an Advanced Auto Typer in Visual Basic 2008/2010

Sep 2nd, 2012
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.65 KB | None | 0 0
  1. How to Make an Advanced Auto Typer in Visual Basic 2008/2010
  2. ~
  3. Requirements:
  4. 1 Timer
  5. 2 Buttons (Button1 ~ Start) (Button2 ~ Stop)
  6. 2 Textbox (Textbox1 ~ Multi-line) (Textbox2 Text ~ 1 )
  7.  
  8. Timer1:
  9. SendKeys.Send(TextBox1.Text)
  10.         SendKeys.Send("{Enter}")
  11.  
  12. Button1 ~ Start
  13. Try
  14.             If TextBox2.Text = "" Then MessageBox.Show("Choose a speed", "Information")
  15.             Timer1.Interval = TextBox2.Text * 1000
  16.             Timer1.Start()
  17.         Catch ex As Exception
  18.             MessageBox.Show("Invalid number, choose a valid speed", "Information")
  19.         End Try
  20.  
  21. Button2 ~ Stop
  22. Timer1.Stop()
  23.  
  24. -- DEBUG --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement