Esempio n. 1
0
        static void callbackWhatIsNpp(object data)
        {
            string text2display = (string)data;

            notepad.FileNew();

            Random srand    = new Random(DateTime.Now.Millisecond);
            int    rangeMin = 0;
            int    rangeMax = 250;

            for (int i = 0; i < text2display.Length; i++)
            {
                Thread.Sleep(srand.Next(rangeMin, rangeMax) + 30);
                editor.AppendTextAndMoveCursor(text2display[i].ToString());
            }
        }