Results 1 to 5 of 5

Thread: Virtual Keycodes, List Of

  1. #1

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    Virtual Keycodes, List Of

    Various Windows API calls require the use of "virtual keycodes", most of which are not surprisingly completely different from "regular" keycodes. As such, I am in need of a list of these things, specifically the [, ], and \ keys. Does anyone have or know where I can get a list of these things?

    I've already tried MSDN and a cursory Google search with no luck.

    ~Zero the Inestimable

  2. #2
    jim mcnamara
    Guest
    These things are called scancodes - some time virtual key codes

    http://msdn.microsoft.com/library/de...econstants.asp

    That what you want?

  3. #3

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    ...

    That list still doesn't have the brackets or backslash key.

    There has to be a keycode for those buttons, because every computer on the face of the planet has them...

    Are the "virtual keycodes" needed for the WM_Keydown, WM_Keyup, and RegisterHotkey calls the same as the ones you get from a KeyPress event to a VB object? That would be too simple.

    ~Zero the Inestimable

  4. #4
    jim mcnamara
    Guest
    You had to make it more compllicated. Those two keys are the Keyascii value. Most of the time.

    Got Microsfot Word?

    http://www.microsoft.com/hwdev/desinit/scancode.htm

    Read about scancodes. Hot keys, and windows keys, and key combinations are also called scancodes. They actually come in as multiple ascii values. Shift, crtl, and alt also affect what goes into the keyboard buffer, and that is in turn translated by windows messaging.

    Dan Appleman's 'Visual Basic Programmer's Guide to the Win32 api' has a full table of scancodes.

    PowerBasic help also has them.

  5. #5

    Thread Starter
    Lively Member Zero's Avatar
    Join Date
    Feb 2000
    Posts
    101

    ...

    Bingo.

    ~Zero the Inestimable

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width