Question

I've searched a lot but didn't found anything , what I want to know is how I can type into a textbox slowly ... I mean for example , Typing letter by letter like if I was writing it ...

Was it helpful?

Solution

It sounds like you are trying to simulate typing text into a UI in C# and want it to go more slowly to look closer to what a human would type. If so then why not add artificial pauses in between sending key strokes?

void TypeText(string text) {
  foreach (var c in text) { 
    SendKeyStroke(c);
    Thread.Sleep(TimeSpan.FromSeconds(1));
  }
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top