Thread: special key

  1. #1
    Unregistered
    Guest

    special key

    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

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231

    Re: special key

    >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]

  3. #3
    Registered User red_baron's Avatar
    Join Date
    May 2002
    Posts
    274
    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]

  4. #4
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    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.

  5. #5
    Unleashed
    Join Date
    Sep 2001
    Posts
    1,765
    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.

  6. #6
    Unregistered
    Guest
    ok its ok now... i got some help from my uncle.

    thanks for your help

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 11-23-2007, 01:48 PM
  2. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  3. Directional Keys - Useing in Console
    By RoD in forum C++ Programming
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM
  4. FAQ: Directional Keys - Useing in Console
    By RoD in forum FAQ Board
    Replies: 38
    Last Post: 10-06-2002, 04:42 PM