SIMULATE TYPEWRITER EFFECT IN TEXTBOX

Total Post:19

Points:133
C# 
C#
 3918  View(s)
Ratings:
Rate this:

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

  1. Post:12

    Points:84
    Re: Simulate typewriter effect in textbox

    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));
      }
    }

      Modified On Mar-31-2018 06:03:08 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!