From: Ian W. <lak...@ho...> - 2001-09-13 18:18:05
|
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 |
From: Michael C <jd...@ho...> - 2001-09-13 20:09:33
|
Hi, I have a question : What are u trying to print. Are you trying for a screen shot or a file that the current window is editing ? I think more info is needed. Michael ----- Original Message ----- From: Ian Weston <lak...@ho...> To: <dev...@li...> Sent: Thursday, September 13, 2001 7:17 PM 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 > |
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 |
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 |