From: Jay Levitt Date: 2007-12-30T05:00:05+09:00 Subject: Re: virtual key codes? On Sat, 29 Dec 2007 13:56:12 -0500, Marc Heiler wrote: > But I agree completely on one point - WHAT is a virtual key? > > Is that a key used in an online game? Or one you would like to have on > your keyboard, but don't have? :) I think it's one of those keys that you find in your drawer and realize you don't have any idea what it unlocks. Philosophically, a key, by definition, is a key TO something. If you have no something, you have no key. So it's a virtual key; if you know what it unlocks, the key actualizes. Ironically, John Locke himself *was* a key philosopher. That said, I suspect the OP *may* be talking about Windows "virtual key codes" - Delphi appears to use them a lot: http://delphi.about.com/od/objectpascalide/l/blvkc.htm They're sort-of keyscan codes. I have no idea how or if they are accessed in Ruby. -- Jay Levitt | Boston, MA | My character doesn't like it when they Faster: jay at jay dot fm | cry or shout or hit. http://www.jay.fm | - Kristoffer