Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

New window key scan codes

3 views
Skip to first unread message

Gregory Fromer

unread,
Jan 9, 1996, 3:00:00 AM1/9/96
to
Hey all..

Just a quick question.. Im making a hidden cheat for a game and I want to
use the windows keys on the new windows enhanced keyboards.. does anyone
know the scan codes of the three keys?

thanks

--
"Cry Havoc!! And let slip the dogs of war!" - shakespere

--== Shocks ==--


Rainer Deyke

unread,
Jan 10, 1996, 3:00:00 AM1/10/96
to
Gregory Fromer (sho...@primenet.com) wrote:
: Hey all..

: Just a quick question.. Im making a hidden cheat for a game and I want to
: use the windows keys on the new windows enhanced keyboards.. does anyone
: know the scan codes of the three keys?

So you only want to make the cheat work on Micro$oft keyboards? WHY?
(No, I can't answer your question.)

--
+------------------------------------------------------+
| "Fumbling in frustration, inside soul torn apart |
| Feel the loss of paradise, leave an empty heart |
| Closing eyes will shut out, the warm light of a life |
| Grip is fading slowly, for each day passing by" |
| - Desultory, "A Closing Eye" |
+------------------------------------------------------+
| Rainer Deyke (rai...@mdddhd.fc.hp.com) |
+------------------------------------------------------+

kmc...@vms.cis.pitt.edu

unread,
Jan 10, 1996, 3:00:00 AM1/10/96
to
>
> Just a quick question.. Im making a hidden cheat for a game and I want to
> use the windows keys on the new windows enhanced keyboards.. does anyone
> know the scan codes of the three keys?
>
> thanks
>
Why don't you just put a printf() statement in your keyboard
handler that prints out each inputed scancode. Then you'll
get all 3 in a flash. This should work.

later,
Kirk

================================================================
Kirk Christiansen Email: kmc...@pitt.edu
Check out info on my games at: http://www.pitt.edu/~kmcst13/
Download my game TANKGAME from my web page. (only 107k!)
----------------------------------------------------------------
"Green beret...........war hero........that's great...
...that's just great." --David Caruso (First Blood)
================================================================

Gary E. Sherman

unread,
Jan 10, 1996, 3:00:00 AM1/10/96
to
Gregory Fromer wrote:
>
> Hey all..

>
> Just a quick question.. Im making a hidden cheat for a game and I want to
> use the windows keys on the new windows enhanced keyboards.. does anyone
> know the scan codes of the three keys?
Well I ran my little scancode program and the keys do not return a
scan code. From that I assume they are a "state" key similar to the
shift, ctl, alt, etc.

-gary
--
=====================================================
Gary E. Sherman Micro Resources
she...@mrcc.com http://www.mrcc.com
=====================================================

Jeff Lait

unread,
Jan 12, 1996, 3:00:00 AM1/12/96
to
In article <30F4B260...@mrcc.com>,

Gary E. Sherman <she...@mrcc.com> wrote:
>Gregory Fromer wrote:
>>
>> Hey all..
>>
>> Just a quick question.. Im making a hidden cheat for a game and I want to
>> use the windows keys on the new windows enhanced keyboards.. does anyone
>> know the scan codes of the three keys?

>Well I ran my little scancode program and the keys do not return a
>scan code. From that I assume they are a "state" key similar to the
>shift, ctl, alt, etc.

Er... shift, ctrl, alt, etc return scancodes, no? All translation
of a->A is handled by the bios.
As for the original question, unfortunately I can't find my scancode
reader, and am too lazy to write yet another one, but I did try out of
curiosity the keys in a plain old getch() loop. This was, incidentally,
under OS/2, I don't suggest trying this in '95 as likely the presses will
be intercepted. The left and right windows keys were both interpreted
as ascii 248, and the app key was apparently ignored. This may be a resuly
of my bios not properly handling the extra bucky bits in the scancodes
it was give.
I don't suggest using it as a cheat, as those most likely with
Microsoft keyboards are running '95 (rest of us go for something a bit
more extreme, ie: Kinesis), so your game will never get these codes
anyways...


--
- Jeff Lait (SOL)


Paul Hsieh

unread,
Jan 15, 1996, 3:00:00 AM1/15/96
to
Gregory Fromer (sho...@primenet.com) wrote:
: Hey all..
: Just a quick question.. Im making a hidden cheat for a game and I want to
: use the windows keys on the new windows enhanced keyboards.. does anyone
: know the scan codes of the three keys?

Uhh ... well, you aren't going to be able to implement it without code that
actually scans the keyboard ... and if you had that code why would you need
to ask what the scan codes are? You can sample them yourself! Are you
developping for a keyboard that you don't have?? I don't get it ...

--
Paul Hsieh
q...@xenon.chromatic.com

What I say and what my company says are not always the same thing

Jason Allen Doucette

unread,
Jan 15, 1996, 3:00:00 AM1/15/96
to
rai...@deyke3.fc.hp.com (Rainer Deyke) wrote:
>Gregory Fromer (sho...@primenet.com) wrote:
>: Hey all..
>
>: Just a quick question.. Im making a hidden cheat for a game and I want to
>: use the windows keys on the new windows enhanced keyboards.. does anyone
>: know the scan codes of the three keys?
>
>So you only want to make the cheat work on Micro$oft keyboards? WHY?
>(No, I can't answer your question.)

I wouldn't mind knowing them, so you could make the system hang up or
give a nice message or something.... be creative.

I actually know someone who just got one of those keyboards. I'll be
able to test them tonight. I'll post the answers when I get the chance.

--
Jason Allen Doucette | "You know you're drunk when you feel it's
Saw Tooth Distortion | necessary to inform others you're not."
---------------------+------------------------------------------
E-mail: Jason.Alle...@pobox.com

Jason Allen Doucette

unread,
Jan 17, 1996, 3:00:00 AM1/17/96
to
Well, I found them. I don't know what the keys are called, but:

The windows logo key returns 91 (there's two of these keys, and pressing
both, then releasing one will result in a key release code sent almost
immediately, or up to almost half a second after the release....I don't
know why...?)

The menu selection (file manager?) key returns 93. There's only one of
these keys.

91 and 93 are the scan codes return from port 60h (I think). Both keys do
not leave anything in the keyboard buffer. This was running on a 486-100
that's about a year old. Only the keyboard is new. So maybe the BIOS or
whatever controls this is not set up to do this.

I just found out someone else who bought a new computer running win95
with this keyboard, I'll probably check it out on his when I get the
chance. If someone wants the small programs I used to test this, I can
send them to you. They're pretty useful.

anyways...happy coding.

0 new messages