What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Get ascii character from virtual key code

Get ascii character from virtual key code
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15517
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Get ascii character from virtual key code
quote:
Originally posted by deAd
So according to your post, every character has a designated virtual key code and it's safe to compare the key code from the event to the one I want without discrepancies?
yes, since every character on your keyboard has a virtual key code (which is the same for everybody).

Note: but not every key code has a character assigned to it, eg: the CTRL key will only have a virtual key code (which is the same for everybody), while the "A" key has both a virtual key code as a character code.

PS: logically, it would have been very doubtfull Patchou would include a function like that which would highly depend on keyboard layout (making it virtually impossible to use such a function to catch keystrokes in scripts)

;)

quote:
Originally posted by deAd
EDIT: MSDN says "Used for miscellaneous characters; it can vary by keyboard." and that it's the one I'm looking for on the US standard keyboard...this contradicts what you're saying, no?
No, that is either about Keyboard SCAN codes...

...Or either about the fact that a keyboard can contain special keys which can be defined by the manufacters. In those few cases, those keys are extremely off standard and should never be used to control a program made for public use. (eg: the VK_OEM_x keys are examples of such keys. The OEM says it all, Original Equipment Manufacturer)

See my linked-to post in the first reply and also "CookieRevised's reply to Virtual Key Code".

This post was edited on 01-15-2007 at 09:23 PM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
01-15-2007 09:10 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Get ascii character from virtual key code - by deAd on 01-15-2007 at 08:18 PM
RE: Get ascii character from virtual key code - by matty on 01-15-2007 at 08:45 PM
RE: Get ascii character from virtual key code - by deAd on 01-15-2007 at 08:47 PM
RE: Get ascii character from virtual key code - by CookieRevised on 01-15-2007 at 09:00 PM
RE: Get ascii character from virtual key code - by deAd on 01-15-2007 at 09:07 PM
RE: Get ascii character from virtual key code - by CookieRevised on 01-15-2007 at 09:10 PM
RE: Get ascii character from virtual key code - by deAd on 01-15-2007 at 09:26 PM
RE: Get ascii character from virtual key code - by CookieRevised on 01-15-2007 at 09:43 PM
RE: RE: Get ascii character from virtual key code - by deAd on 01-15-2007 at 09:44 PM
RE: RE: RE: Get ascii character from virtual key code - by CookieRevised on 01-15-2007 at 10:01 PM
RE: RE: RE: RE: Get ascii character from virtual key code - by deAd on 01-15-2007 at 10:48 PM
RE: Get ascii character from virtual key code - by CookieRevised on 01-17-2007 at 09:00 AM
RE: Get ascii character from virtual key code - by deAd on 01-17-2007 at 11:13 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On