Preventing ALT+TAB and ALT+ESC
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
February 21, 2001 01:40 AM
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.![](smile.gif)
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]).
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.
![](smile.gif)
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]).
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/
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
Popular Topics
Advertisement
Recommended Tutorials
Advertisement