Ok so i know how to use the F1-F10 keys but am strugling on F11 And F12, and im really not sure how to go about fixing it..
so if anyone knows how to Access the F11- F12 Keys please let me know thanks
Ok so i know how to use the F1-F10 keys but am strugling on F11 And F12, and im really not sure how to go about fixing it..
so if anyone knows how to Access the F11- F12 Keys please let me know thanks
Last edited by AndyBomstad; 05-10-2005 at 01:43 PM.
Try 0x87 for F11 and 0x88 for F12.
Or maybe 0x7A and 0x7B: http://delphi.about.com/od/objectpascalide/l/blvkc.htm
Last edited by joshdick; 05-10-2005 at 01:13 PM.
FAQ
"The computer programmer is a creator of universes for which he alone is responsible. Universes of virtually unlimited complexity can be created in the form of computer programs." -- Joseph Weizenbaum.
"If you cannot grok the overall structure of a program while taking a shower, you are not ready to code it." -- Richard Pattis.
didnt work..i might be trying it wrong heres the code im working on if ya wanna mess with it
heres some msnd table...dont know what its saying really either...lolCode://Menu #include <iostream> #include <conio.h> using namespace std; int main(void) { while(true) { system("cls"); cout<<"#### Main Menu ####"<<endl; cout<<"F1: Get input: "<<endl; cout<<"F11: Message: "<<endl; cout<<"F12: Another Message:"<<endl; cout<<"_____________________"<<endl; char choice; choice = getch(); if(choice == 0) { choice = getch(); if(choice == 0x87) // F11 Key { system("cls"); cout<<"You Have Hit F11!"<<endl; system("pause"); } } } }
http://msdn.microsoft.com/library/de...es_chart_2.asp
Last edited by AndyBomstad; 05-10-2005 at 01:19 PM.
ok now im trying somthing like this its not working either
Code://Menu #include <iostream> #include <conio.h> using namespace std; int main(void) { while(true) { system("cls"); cout<<"#### Main Menu ####"<<endl; cout<<"F1: Get input: "<<endl; cout<<"F11: Message: "<<endl; cout<<"F12: Another Message:"<<endl; cout<<"_____________________"<<endl; char choice; choice = getch(); if(choice == 0 ||choice == 224) { choice = getch(); if(choice == 87) { system("cls"); cout<<"You Have Hit F11!"<<endl; system("pause"); } } } }
>> this its not working either
You need to learn how to use a debugger....
> int choice;
and
> if (choice == 133)
gg
Ah geez....lol sorry i slopped that code with the whole "Char choice"....lol alright here it is lol Thanks
Code://Menu #include <iostream> #include <conio.h> using namespace std; int main(void) { while(true) { system("cls"); cout<<"#### Main Menu ####"<<endl; cout<<"F1: Get input: "<<endl; cout<<"F11: Message: "<<endl; cout<<"F12: Another Message:"<<endl; cout<<"_____________________"<<endl; int choice; choice = getch(); if(choice == 0 ||choice == 224) { choice = getch(); if(choice == 133) { system("cls"); cout<<"You Have Hit F11!"<<endl; system("pause"); } } } }