32- Auto Typer

0
321

This Visual Basic tutorial is all about Auto Typer.
Auto Typers are very common in the web and there are instances that some people charge money for them.

 

Today, I will teach you how to make an Auto Typer. With this, you can create a customized Auto Typer that you can share  with your friends.

This tutorial will cover how to Send Keys.

 

Let’s begin:

  • Open the Visual Basic, select “File” on the menu, hit new and create a new project.
    01_helloworld
  • The New Project dialog will appear.
    create2s
    Select “windows” in the project types, hit the “windows form application” in the templates and hit “ok“.
  • Add two buttons, a timer and a textbox and the form will look like this.

autotypeF1

  • Add the following code in the code editor.
  1. Public Class Form1
  2.  
  3. Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  4. SendKeys.Send(TextBox1.Text)
  5. SendKeys.Send("{Enter}")
  6. End Sub
  7.  
  8. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  9.  
  10. Timer1.Start()
  11. End Sub
  12.  
  13. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  14. Timer1.Stop()
  15. End Sub
  16. End Class
  • This will be the output when you run the program.

autotypeF2

 

Readers might read also:

 

 

Facebook Comments
(Visited 32 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here