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:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
O.P. Get ascii character from virtual key code
In an ChatWndEditKeyDown event, it is sometimes necessary to find which key is down. I could do this by directly comparing the virtual key code that was pressed with the one I would like to see, but this could fail on keyboards with different languages.

What I need is a way to find which character was pressed regardless of the keyboard layout that is fast and won't slow down typing...but I can't figure out how.

If there is a better way to do this please tell me :).

EDIT: Maybe the ToAscii and ToAsciiEx functions could be used, but I don't think the event passes enough information to call them.

This post was edited on 01-15-2007 at 08:19 PM by deAd.
01-15-2007 08:18 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