|
From: rogelio <ro...@di...> - 2001-09-14 13:20:51
|
Hi
You can get the code of F keys using this program
the key F is a extended code, first a 0 and other "char" for F1, F2, F3 ...
#include <stdio.h>
#include <conio.h>
int main()
{
char c,d;
c=getch();
if (c=0)
{
d=getch();
}
printf("%d\n", c);
printf("%d\n", d);
}
One GUI to rule them all, One GUI to find them
One GUI to bring them all, and with the blue screen bind them
In the land of Redmond, where the shadows lie
Rogelio Blanco Leon
rog...@ho...
| .~.
| /V\
| /( )\
| ^^-^^
----- Original Message -----
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Sent: Friday, September 14, 2001 1:45 AM
Subject: RE: [Dev-C++] pressing F9
Unfortunately the F keys have not some certain ASCII code. They are like
shortcuts already assigned to some job. You can find the ascii code of
any other key using the following code:
#include <stdio.h>
#include <conio.h>
int main()
{
char c=getch();
printf("%d\n", c);
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Ian Weston
> Sent: Thursday, September 13, 2001 8:18 PM
> To: dev...@li...
> Subject: [Dev-C++] pressing F9
>
>
> Hello again. but in a program i'm writing i want to press F9
> to print. i
> know how to print (thanks to vassili and michael), but i just
> need to know
> how i can get it to do this by pressing F9.
> i'm doing this as a console if, incase that changes anything.
>
> thankyou to anyone that can help. ian.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
>
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|