#1
  1. No Profile Picture
    Web.Dev.
    Devshed Newbie (0 - 499 posts)

    Join Date
    Apr 2001
    Location
    Nottingham, UK
    Posts
    68
    Rep Power
    14

    VS6 Keystroke Detection


    Hi all,

    I'm having a little trouble at Uni. I need to know how to detect keystrokes and return their ASCII values.

    Specifically, I need the functions and the libraries to do this.


    Thnx for your help :D

    Brent
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,592
    Rep Power
    4207
    If you're writing a DOS console program, use the getch() function:
    Code:
    int ch;
    while (1) {
       ch = getch();
       printf("Ascii value is %d\n", ch);
    }
    Hope this helps!

IMN logo majestic logo threadwatch logo seochat tools logo