Esempio n. 1
0
        public string ReadString(short x, short y, short width, short height)
        {
            tmut.WaitOne();
            string output = "";

            foreach (string line in ConsoleReader.ReadFromBuffer(x, y, width, height))
            {
                output = line;
            }
            tmut.ReleaseMutex();
            return(output);
        }
Esempio n. 2
0
        public string ReadString(short x, short y, short width)
        {
            tmut.WaitOne();
            string output = "";

            foreach (string line in ConsoleReader.ReadFromBuffer(x, y, width, 3))
            {
                if (line.Contains("/") | line.Contains("\\"))
                {
                    output = line;
                }
            }
            tmut.ReleaseMutex();
            return(output);
        }