|
-
Nov 26th, 2001, 10:54 AM
#1
Thread Starter
Lively Member
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
-
Nov 26th, 2001, 11:39 AM
#2
These things are called scancodes - some time virtual key codes
http://msdn.microsoft.com/library/de...econstants.asp
That what you want?
-
Nov 26th, 2001, 07:29 PM
#3
Thread Starter
Lively Member
...
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
-
Nov 26th, 2001, 07:46 PM
#4
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.
-
Nov 28th, 2001, 07:01 PM
#5
Thread Starter
Lively Member
...
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|