Tag Archives: sendkeys

C# SendKeys function

Using the C# SendKeys function we can easily connect multiple keys or even pinting out whole strings just by using one key or just applying for example the F_Keys to Hotkeys.

So let’s see how it works:

static void _sendkeys()
    string _text = "the matrix has you";

    foreach (char c in _text)
        // prints out each character of _text each after 500ms

So this basic example would print out the text “the matrix has you” with a sleep time of 500ms after each character. Read more [...]