Вопрос

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 ...

Это было полезно?

Решение

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));
  }
}
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top