What Is SendKeys In VB.NET And How To Use It

just thought to write something what will make alot sense so i am gonna explain what is sendkeys() and how to use it
you can use SendKeys() to type words like they are typed from your keyboard

for instance :

add this code to a button click event or any other click events

process.start("notepad")

Sendkeys.Send("Testing 123 123 123)")

what this actually do is , when you click on the button notepad.exe(windows notepad) will open and automatically Testing 123 123 123 will be typed in the notepad

some people use sendkeys() to make bots

for instance :
you have a game and for example lets take mario and you need to press spacebar to jump so you can use this on a timer and it will do it automatically

sendkeys.sendwait("^{ }")

by the way sendkeys() are super fast than we type

you can also use sendkeys() to automatically type in a messenger or a chat box (skype,yahoo messenger,oovoo,msn,etc)

for instance :

add a textbox and add a button and add this code to click event , you should add this namespace imports system.windows.forms

Randomize()
Dim rand As Random
 Dim sendkey As String = "(" + rand.Next(1, 999).ToString + ")" + TextBox1.Text
 SendKeys.Send(sendkey)