The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: cobold on November 08, 2008, 03:41:36 AM

Title: Testing for keystroke w/o interrupt
Post by: cobold on November 08, 2008, 03:41:36 AM
Hello,

I know getkey and inkey. Problem is that these macros stop execution of a program until a key is pressed.

Is there a function or API-call that just tests for a keystroke without waiting?

Thks in advance

cobold
Title: Re: Testing for keystroke w/o interrupt
Post by: KeepingRealBusy on November 08, 2008, 03:47:45 AM
PeekConsoleInput.

Dave.
Title: Re: Testing for keystroke w/o interrupt
Post by: cobold on November 08, 2008, 03:53:01 AM
Thanks a lot!
Title: Re: Testing for keystroke w/o interrupt
Post by: Neil on November 08, 2008, 08:06:40 AM
Have a look at this post when I had similiar problems :-

           http://www.masm32.com/board/index.php?topic=9392.0