I try to send ConsoleKey.DownArrow with the Terminal Emulation. What do I have to set as keyChar Unicode character (1st parameter) when I try ConsoleKeyInfo key = new ConsoleKeyInfo(?, ConsoleKey.DownArrow, false, false, false); _scripting.Send(key);
ConsoleKeyInfo key = new ConsoleKeyInfo(?, ConsoleKey.DownArrow, false, false, false); _scripting.Send(key);
Hi,
try another overload of Send method:
_scripting.Send(FunctionKey.DownArrow);
or if you need to send DownArrow with CTRL pressed, use another overload:
_scripting.Send(FunctionKey.DownArrow, ConsoleModifiers.Control);
Welcome to Q&A forum for C# and VB.NET developers working with following .NET components:
Applications:
If you need immediate assistance, please contact us directly.