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