SendKeys

Top  Previous  Next

The SendKeys method sends a string of keys to the virtual Screen. This method acts as if keystrokes were being typed from the keyboard.

The keystrokes will be sent to the location given. If no location is provided, the keystrokes will be sent to the

current cursor location.

 

VB.NET

 

Screen.SendKeys(text As String, location As Position)

 

C#

 

Screen.SendKeys(string text, Position location);

 

 

Parameters

 

Parameters

Description

text

The string of characters to be sent.

location

Position where the string should be written.