Keyboard.SendKeys Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SendKeys(UITestControl, String, ModifierKeys, Boolean, Boolean)
public:
static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys * bool * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys, isEncoded As Boolean, isUnicode As Boolean)
Parameters
- control
- UITestControl
- text
- String
- modifierKeys
- ModifierKeys
- isEncoded
- Boolean
- isUnicode
- Boolean
Applies to
SendKeys(String, ModifierKeys, Boolean, Boolean)
public:
static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded, bool isUnicode);
static member SendKeys : string * System.Windows.Input.ModifierKeys * bool * bool -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys, isEncoded As Boolean, isUnicode As Boolean)
Parameters
- text
- String
- modifierKeys
- ModifierKeys
- isEncoded
- Boolean
- isUnicode
- Boolean
Applies to
SendKeys(UITestControl, String, ModifierKeys, Boolean)
public:
static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys, isEncoded As Boolean)
Parameters
- control
- UITestControl
- text
- String
- modifierKeys
- ModifierKeys
- isEncoded
- Boolean
Applies to
SendKeys(String, ModifierKeys, Boolean)
public:
static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys, bool isEncoded);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys, bool isEncoded);
static member SendKeys : string * System.Windows.Input.ModifierKeys * bool -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys, isEncoded As Boolean)
Parameters
- text
- String
- modifierKeys
- ModifierKeys
- isEncoded
- Boolean
Applies to
SendKeys(UITestControl, String, ModifierKeys)
public:
static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, System.Windows.Input.ModifierKeys modifierKeys);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * System.Windows.Input.ModifierKeys -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, modifierKeys As ModifierKeys)
Parameters
- control
- UITestControl
- text
- String
- modifierKeys
- ModifierKeys
Applies to
SendKeys(String)
public:
static void SendKeys(System::String ^ text);
public static void SendKeys (string text);
static member SendKeys : string -> unit
Public Shared Sub SendKeys (text As String)
Parameters
- text
- String
Applies to
SendKeys(String, ModifierKeys)
public:
static void SendKeys(System::String ^ text, System::Windows::Input::ModifierKeys modifierKeys);
public static void SendKeys (string text, System.Windows.Input.ModifierKeys modifierKeys);
static member SendKeys : string * System.Windows.Input.ModifierKeys -> unit
Public Shared Sub SendKeys (text As String, modifierKeys As ModifierKeys)
Parameters
- text
- String
- modifierKeys
- ModifierKeys
Applies to
SendKeys(String, Boolean)
SendKeys(UITestControl, String)
public:
static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String)
Parameters
- control
- UITestControl
- text
- String
Applies to
SendKeys(UITestControl, String, Boolean)
public:
static void SendKeys(Microsoft::VisualStudio::TestTools::UITesting::UITestControl ^ control, System::String ^ text, bool isEncoded);
public static void SendKeys (Microsoft.VisualStudio.TestTools.UITesting.UITestControl control, string text, bool isEncoded);
static member SendKeys : Microsoft.VisualStudio.TestTools.UITesting.UITestControl * string * bool -> unit
Public Shared Sub SendKeys (control As UITestControl, text As String, isEncoded As Boolean)
Parameters
- control
- UITestControl
- text
- String
- isEncoded
- Boolean