Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- From: mrc2323@xxxxxxx (Michael R. Copeland)
- Date: Mon, 17 Oct 2005 20:45:33 -0700
I'm developing a group of 32 Bit DOS applications (I'm unable to
develop Windows applications), and I need to access all kinds of
keyboard input. So far, I can get most keys, but I'm unable to get the
Alt & Ctrl keys. Here's what I'm doing:
char_var = getch();
if (char_var == '\0') // special or extended key
char_var = getch(); // fetch scancode
The MSDN documentation seems to indicate that the Alt/Ctrl keys can't
be accessed this way (and they sure don't...), but I can't find any way
to get them. Since many applications can, I'd like to know how. Any
help? TIA
.
- Follow-Ups:
- Re: Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- From: Joe Hagen
- Re: Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- From: Pavel A.
- Re: Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- From: Alex Blekhman
- Re: Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- Prev by Date: Re: How to determine at runtime where the application is launched from
- Next by Date: Re: How to determine at runtime where the application is launched from
- Previous by thread: How conver Char* to LPCWSTR
- Next by thread: Re: Accessing Alt & Ctrl Keys in 32 Bit Dos Applications
- Index(es):
Relevant Pages
|