Click to See Complete Forum and Search --> : How to check if the "F" keys have been pressed in C..


CKarl
08-02-2003, 08:03 AM
On another forum I posted this question on (http://cboard.cprogramming.com/showthread.php?s=&threadid=42868)
I need this to program this text based Notepad-like program to port to a diff OS.

PLZ help,
CKarl

DragonHead
08-02-2003, 05:03 PM
Why not just do a getch and see if the char returned is an F?

Suramya
08-02-2003, 05:14 PM
Originally posted by DragonHead
Why not just do a getch and see if the char returned is an F?

He is talking about the Functions keys. They don't show up as an ASCII values.

You could use the Scan codes for the keys to detect the function keys. The function you need to use for this is called bioskey();

Hope this helps.

- Suramya