I wanted to write a simple application, to get a word from a string, and keypress the keys corresponding of each letter from that string, to write that word, for example on notepad.
What I got so far is:
public void TestKeyboard()
{
string a = "test"; //this is the string it should be written
foreach (char c in a)
{
Keyboard.KeyPress(c); //how to obtain this? this isn't working
}
}
How would you obtain the Keyboard.KeyPress event?