On Sep 05, 2006, at 23:41 UTC, Aubrey Todd wrote:

> This is just a utility program to address my being lazy and trying to
> learn at the same time. Sometimes I need to know the ASCII code for  
> 'Right Arrow' or some other key so I run this program, press right  
> arrow and there is my answer without having to look it up in a table.

Well, that part's easy -- you have that as soon as you display
Str(Asc(Key)) in the KeyDown event.  Nothing else is needed for
ordinary keys.  And the weird keys (F keys, etc.) don't, in general,
have any unique ASCII (character) code, so attempts to find one for
them are futile.

Also, remember that what character a particular key generates depends
on the keyboard layout you happen to be using.  (I use Dvorak, for
example.)

> While I was going through the LR looking at the Keyboard commands, I  
> saw the Keyname one and the list of keys it would give and I thought  
> WOW, I can include that and get a lot more information, but, from  
> your response, it does not sound like that will work

Right.  KeyName names a key by its physical key code, not by the
character code they may generate on some particular keyboard layout.

Best,
- Joe

--
Joe Strout -- [EMAIL PROTECTED]
Verified Express, LLC     "Making the Internet a Better Place"
http://www.verex.com/

_______________________________________________
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>

Reply via email to