Thomas Tempelmann wrote:
What would be an extended key versus a non-extended?
Sorry for the delayed response; unexpected circumstances pulled me away.
Alpha-numeric keys would be examples of non-extended, and the arrow keys
are an example of extended (i.e. only found on "extended" keyboards). I
was looking for a way to determine this programatically. So that I can:
Receive a keydown
Get the keycode
Get Extended as boolean
This is an excerpt from MSDN docs for keybd_event, which is what I need
to use to reproduce the keystroke on the other end of a socket.
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputfunctions/keybd_event.asp>
Parameters
bVk
[in] Specifies a virtual-key code. The code must be a value in
the range 1 to 254. For a complete list, see Virtual-Key Codes.
bScan
This parameter is not used.
dwFlags
[in] Specifies various aspects of function operation. This
parameter can be one or more of the following values.
KEYEVENTF_EXTENDEDKEY
If specified, the scan code was preceded by a prefix byte
having the value 0xE0 (224).
KEYEVENTF_KEYUP
If specified, the key is being released. If not specified,
the key is being depressed.
Thanks,
Brian
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>