Solved

Temporarily Disabling Windows95 keys

Posted on 1998-10-15
9
194 Views
Last Modified: 2013-11-20
I'm running a DOS game (Descent) from within a Windows DOS session and I want to disable the Windows95 keys during that session.  Is this possible and how can I go about doing it?  Thanks!
0
Comment
Question by:mcsilver
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 86

Expert Comment

by:jkr
ID: 1323373
Go to the settings of _default.pif in the windows' directory. On the last tab, you'll find a field named 'Windows access keys' (or so, i'm running a german version here..). Simply uncheck the buttons you don't want to use...
0
 
LVL 1

Author Comment

by:mcsilver
ID: 1323374
I want to disable the keys that invoke the Windows start menu and the Windows context (popup) menus, not key combinations like Alt-Space and Alt-Enter.
0
 
LVL 86

Expert Comment

by:jkr
ID: 1323375
Well, perhaps you don't know that the start menu key is the equivalent to'Ctrl+Esc'...
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 5

Expert Comment

by:AnswerTheMan
ID: 1323376
soon, our master Bill the Gatse will disable windows for any
Dos Sessions, so u'll have to upgrade to windows, the sooner the better.
0
 
LVL 1

Author Comment

by:mcsilver
ID: 1323377
Ctrl+Esc does not disable the Windows 95 key(s).  Does anyone have another suggestion?  Maybe I can write a program that will intercapt my keyboard input through the entire system.  Suggestions for how to do such a thing?

Thanks,
Craig
0
 
LVL 1

Expert Comment

by:polimetla
ID: 1323378
Dear brother/sister,

You want,  In Windows DOS session you want to disable the  Windows95 keys during that session.

1. simply use _getchar(), what ever keys you want process them.
    if you dont want to process, go back to your logic.
    i.e indireclty disbling the required keys. and you will got your funcionality.

2. If you have any doubts please tell me clearly. I will finish it and give it to you

with regards,
Bhavani  P Polimetla

0
 
LVL 1

Author Comment

by:mcsilver
ID: 1323379
I don't think this is going to work.  It sounds like you're thinking that *I* have written Descent, the DOS game that I'm running.  I haven't.  Descent is a commercial program and I want to write a program that will intercept the keyboard input before this program/game receives it.  How may I do that?
0
 
LVL 1

Accepted Solution

by:
Dex_Man earned 500 total points
ID: 1323380
This is from:http://www.codeguru.com/misc/index.shtml

This tip was contributed by Kevin Bentley.
If you want to disable the alt-tab, alt-esc, ctrl-esc, ctrl-alt-del, win95 logo key, etc. there is a really easy way to do it under Win95.


SystemParametersInfo (SPI_SCREENSAVERRUNNING, 1, &nOldVal, 0);//Turns keys off
SystemParametersInfo (SPI_SCREENSAVERRUNNING, 0, &nOldVal, 0);//Turns keys on


Although I've never done this, what I assume you'd do is create a small application, and have the first line in it's startup. Then, have the second line in it's exiting code.
When you run the program, the keys should be disabled. When you exit the program, it would turn the keys back on.

Or, you could make a small dialog based app, and make two buttons on it. One for exiting the app, and one for toggling the windows keys on and off. Hell...that's not a bad idea... If Quake II didn't already let ya disable them hairy assed windows keys, I'd actually try this out meself!

-Dex Man

0
 
LVL 1

Author Comment

by:mcsilver
ID: 1323381
That did the trick.  Thank you kindly.

Craig
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
sumNumber challenge 16 140
Doc'in system (example?) BA 7 120
isEverywhere  challenge 19 85
moto 4g phone enable finger print 4 47
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question