0 votes
by (170 points)

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

1 Answer

0 votes
by (15.2k points)
selected by
Best answer


try another overload of Send method:


or if you need to send DownArrow with CTRL pressed, use another overload:

_scripting.Send(FunctionKey.DownArrow, ConsoleModifiers.Control);
by (170 points)
Why simple when it can be so complicated ;-)
Works perfect, thanks!