|
From: Ioannis V. <no...@ya...> - 2001-09-14 04:44:06
|
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=3Dgetch();
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...=20
> [mailto:dev...@li...] On Behalf=20
> Of Ian Weston
> Sent: Thursday, September 13, 2001 8:18 PM
> To: dev...@li...
> Subject: [Dev-C++] pressing F9
>=20
>=20
> Hello again. but in a program i'm writing i want to press F9=20
> to print. i=20
> know how to print (thanks to vassili and michael), but i just=20
> need to know=20
> how i can get it to do this by pressing F9.
> i'm doing this as a console if, incase that changes anything.
>=20
> thankyou to anyone that can help. ian.
>=20
> _________________________________________________________________
> Get your FREE download of MSN Explorer at=20
> http://explorer.msn.com/intl.asp
>=20
>=20
>=20
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>=20
|