UtilKeyboardSendString Method
Sends a string to the active window.
Namespace: DevCase.Core.IO.Devices.InputAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static int SendString(
string str,
int delay = 0
)
Public Shared Function SendString (
str As String,
Optional delay As Integer = 0
) As Integer
Dim str As String
Dim delay As Integer
Dim returnValue As Integer
returnValue = UtilKeyboard.SendString(str,
delay)
public:
static int SendString(
String^ str,
int delay = 0
)
static member SendString :
str : string *
?delay : int
(* Defaults:
let _delay = defaultArg delay 0
*)
-> int
No code example is currently available or this language may not be supported.
- str String
-
The string to send.
- delay Int32 (Optional)
-
An optional delay, in milliseonds, to wait between inputs.
Int32
The function returns the number of events that it successfully inserted into the keyboard input stream.
If the function returns zero, the input was already blocked by another thread.
This is a code example.
No code example is currently available or this language may not be supported.
SendString("Hello World!")
SendString(ControlChars.NewLine)
SendString("áéíóú ÁÉÍÓÚ àèìòù ÀÈÌÒÙ äëïöü ÄËÏÖÜ âêîôû ÂÊÎÔÛ çÇ ñÑ ,.-´`+^*¨_:;'¡ ºª !""·$%&/()=?¿ \|@#~€¬[]{}")
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.