Search
3
votes
closed
Console.ReadKey()

Description

Hello,

I'm not sure if I can call this a big but here it goes: When I try to use Console.ReadKey() function to get a key that the user will press doesn't work.

//cki defining, etc, ...
if (Console.ReadKey() == cki)
{
Console.WriteLine("Works!");
}

I'm not sure if this is just now supported but it is an important feature as I need to see if the user presses keys like F1, F2, etc... Is there any other way of reading a key?

By the way if someone reply, could you tell me how to remove the Heap Usage viewr from the toc of the screen?

Thanks and keep up the good work guys.

File Attachments

No files are attached

Closed Apr 17 2011 at 9:27 PM by Trivalik

fixed through pluging


Comments

sashabu wrote Jan 20 2011 at 10:13 AM
Fixed in the latest release, if I'm not mistaken.

mscoolnerd wrote Aug 10 2010 at 12:47 AM
I think Console.ReadKey() will work if a plug is created for Microsoft.Win32.Win32Native.ReadConsoleInput - see Issue #10744

smremde wrote May 1 2010 at 8:46 AM
Can anyone confirm this is still an issue?

cansik wrote Feb 22 2010 at 7:51 AM
Console.ReadKey([boolean ShowChar]) does return a System.ConsoleKeyInfo

cansik wrote Feb 22 2010 at 7:51 AM
Console.ReadKey([boolean ShowChar]) does return a System.ConsoleKeyInfo

cansik wrote Feb 22 2010 at 7:51 AM
Console.ReadKey([boolean ShowChar]) does return a System.ConsoleKeyInfo

cansik wrote Feb 22 2010 at 7:51 AM
Console.ReadKey([boolean ShowChar]) does return a System.ConsoleKeyInfo

smremde wrote Jan 8 2010 at 9:10 AM
The heap usage viewer is not optional at the moment. It can be turned off in the userkit by removing the source.

What kind of output does ReadKey() give?

Updating...
© 2006-2012 Microsoft | Get Help | Privacy Statement | Terms of Use | Code of Conduct | Advertise With Us | Version 2012.2.7.18398