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 ==--
: 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) |
+------------------------------------------------------+
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
--
=====================================================
Gary E. Sherman Micro Resources
she...@mrcc.com http://www.mrcc.com
=====================================================
>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)
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
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
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.