Advertisement

Preventing ALT+TAB and ALT+ESC

Started by February 21, 2001 01:17 AM
2 comments, last by T-Rex 23 years, 11 months ago
Has anyone got any ideas how to prevent user from pressing ALT+TAB AND ALT+ESC????????? Maybe some codes Thanks for help [EDIT]: cleaning soda off your keyboard immediately when you spill it can help prevent stuck punctuation keys. -fel Edited by - felisandria on February 21, 2001 11:23:12 AM
t3
Its EVIL to prevent those from working.

It I encounter an app that does that, I read for ctrl-alt-del and if that fails the reset button (and then the power butten, mainline switch etc.

Seriously, your app should deal with those gracefully. Minimize the app snd pause (for a single player app). Yes, this means you need to deal with lost surfaces and other Microsoft joys. Thats the way it is.

(Thats not to say its not possible to disable those keys [at least on some MS OSes]).
Advertisement
It can be done using DirectInput...





ALL YOUR BASE ARE BELONG TO US
-------homepage - email
You can disable Alt+Tab and Alt+Ctrl+Delete by doing this:
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 1, 0, 0);

Do this when your program exits though:
SystemParametersInfo(SPI_SCREENSAVERRUNNING, 0, 0, 0);

That doesn''t prevent things like Ctrl+Shift+Esc or other Win2K key combinations. I don''t know if it disables Windows+D or Ctrl+Esc. I''d advice you to simply handle Alt+Tab that to disable it.

"Finger to spiritual emptiness underlying everything." -- How a C manual referred to a "pointer to void." --Things People Said
http://www.gdarchive.net/druidgames/

This topic is closed to new replies.

Advertisement