I want to make a program that recognises that while typing a string a special key is pressed (For ex: F1, F2, Arrow keys etc.) so does anyone know how to do this?
thanks
I want to make a program that recognises that while typing a string a special key is pressed (For ex: F1, F2, Arrow keys etc.) so does anyone know how to do this?
thanks
>so does anyone know how to do this?
Yes. You start by searching the boards for what's already been answered. (arrow keys can be considered the same as the F key's, I believe...)
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
i think he meant that he wanted help with recognizing a special key in the middle of typing a string. you could do like a getch to get a char at a time put an if statement to see if it is a special character if it isn't transfer it to an array of strings. (hope thats what you where asking for)
¿Red Baron?
"Imagination is more important than knowledge"
-Albert Einstein (1879-1955)
Check out my games!
[code] /* dont forget code tags! */ [/code]
What key/combination are you looking for and what operating system and compiler do you use?
-Prelude
My best code is written with the delete key.
Search for an ASCII table somewhere, expierment with some if statements, or however you plan to solve this, then post what you've come up with.
The world is waiting. I must leave you now.
ok its ok now... i got some help from my uncle.
thanks for your help