+ Post New Thread
Results 1 to 10 of 10
Windows Thread, [SOLVED] How do I prevent Alt+F4 from being pressed ANYTIME? in Technical; Hey guys, Need some advice on how to prevent Alt+F4 from being pressed to exit Windows Internet Explorer 7 when ...
  1. #1
    link470's Avatar
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    250
    Thank Post
    85
    Thanked 8 Times in 6 Posts
    Rep Power
    15

    Thumbs up [SOLVED] How do I prevent Alt+F4 from being pressed ANYTIME?

    Hey guys,

    Need some advice on how to prevent Alt+F4 from being pressed to exit Windows Internet Explorer 7 when running in Kiosk mode [iexplore.exe -k]. I've tried googling for the last 2 days, and researching a solution, but the only thing I can find is people wanting to get ALT+F4 stopped in their own program when using "forms". I'm not designing a program, I just want to stop ALT+F4 from being pressed to close windows ANY time in windows. I finally got the windows key disabled with a simple registry hack, but it doesn't appear to be that simple with ALT+F4. If anyone has any advice I'd really appreciate it. Working on building a library Kiosk, and it's still sitting in my office here on the work bench as I'm trying to make it absolutely perfect and tamperproof, but that's the one way I can always get around it.

    Also, do you know if there's some way I can edit the hosts file or something, or play with the Windows Internet Explorer security settings to make ANY address typed, for example, google.ca or msn.com, go to the library homepage instead? As in, the browser will only view that site and nothing else? If not that's ok, I was just going to remove the default gateway from the machine and give it a static IP so it can only view internal sites. That's just a bonus question The real issue is just ALT+F4, because if the window is closed, they're left with a blank desktop with no permissions, even hitting the power button won't shut the machine down, you have no choice but to hold the power button and kill it.

    Thanks!
    Last edited by link470; 28th November 2008 at 10:44 PM.

  2. #2

    Andrew_C's Avatar
    Join Date
    Sep 2005
    Location
    Winchester
    Posts
    2,954
    Thank Post
    64
    Thanked 374 Times in 284 Posts
    Rep Power
    158
    It's low tech, but how about hot-melt glue? Or for the more adventurous, a scalpel and the PCB of the keyboard.

  3. Thanks to Andrew_C from:

    link470 (26th November 2008)

  4. #3
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    4,996
    Thank Post
    120
    Thanked 280 Times in 258 Posts
    Rep Power
    106
    Set IE as the user shell and use one of these programs that will start it up if it isnt in the process list.

  5. Thanks to ChrisH from:

    link470 (26th November 2008)

  6. #4
    ICT_GUY's Avatar
    Join Date
    Feb 2007
    Location
    Weymouth
    Posts
    2,261
    Thank Post
    646
    Thanked 283 Times in 204 Posts
    Rep Power
    104
    Quote Originally Posted by Andrew_C View Post
    It's low tech, but how about hot-melt glue? Or for the more adventurous, a scalpel and the PCB of the keyboard.
    Not a bad idea really.

  7. #5

    Join Date
    Feb 2006
    Location
    Derbyshire
    Posts
    1,381
    Thank Post
    181
    Thanked 211 Times in 171 Posts
    Rep Power
    65
    Have you got all the other key combos (CTRL+W etc) sorted too?

    Have you considered using a Linux kiosk solution instead, or is the site/sites you need the kiosk to access built so they only work with IE? Lots of LiveCD ones out there you could test before running with.

  8. Thanks to OutToLunch from:

    link470 (26th November 2008)

  9. #6
    Busybub's Avatar
    Join Date
    Feb 2007
    Posts
    384
    Thank Post
    44
    Thanked 39 Times in 37 Posts
    Rep Power
    22
    If completely disabling the F4 key is an option you can simply mod the registry hack you did for the Windows key and kill both in the same entry

  10. Thanks to Busybub from:

    link470 (26th November 2008)

  11. #7
    link470's Avatar
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    250
    Thank Post
    85
    Thanked 8 Times in 6 Posts
    Rep Power
    15
    Thanks everyone for your replies! This is great information.

    Quote Originally Posted by OutToLunch View Post
    Have you got all the other key combos (CTRL+W etc) sorted too?
    Not yet, I tried the keyboard layout creator tool and didn't get too far. Apparently I can't outright disable the alt or ctrl keys, which I guess is ok so that kids can copy paste between forms if needed on the search site.

    Quote Originally Posted by Busybub View Post
    If completely disabling the F4 key is an option you can simply mod the registry hack you did for the Windows key and kill both in the same entry
    I like that thought. I actually got the registry hack off a website. This is the registry edit here:

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
    "NoDriveTypeAutoRun"=dword:00000091
    "NoWinKeys"=dword:00000001
    Anyone know how I'd be able to do that for other keys to fully disable them? The issue with the registry edit is it doesn't fully disable the Windows Key, it just disables the Windows + [key] shortcuts. Which is basically all I need so that's good. So I can tap the windows key and the start menu still pops up and goes down on another tap. But if I use Windows Key+M or Windows Key+D etc. for "hiding" windows, that doesn't work. So that's good.

    Anyone know how to do this with other key combos?

  12. #8
    link470's Avatar
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    250
    Thank Post
    85
    Thanked 8 Times in 6 Posts
    Rep Power
    15
    Alright guys, I found a solution. It's not software. I took apart the keyboard, and I had a look and noticed there was 4 layers inside the keyboard. The first layer at the top was the rubber buttons that make contact with the lower layers. Then the next layer was some type of contact sheet with points on it for each key, then below that was a plastic shield that kept it having JUST enough space between the contact sheet right below it. So I thought oh ok I get it, so if the two sheets make contact, they make a keystroke. So knowing that, I took small circular stickers and put them above the contact at the bottom for each key I wanted to block, so that when a key was pressed, the top wouldn't make contact with the bottom, and nothing happens. Here's the results :


  13. #9

    Andrew_C's Avatar
    Join Date
    Sep 2005
    Location
    Winchester
    Posts
    2,954
    Thank Post
    64
    Thanked 374 Times in 284 Posts
    Rep Power
    158
    Nice fix!

  14. #10
    Busybub's Avatar
    Join Date
    Feb 2007
    Posts
    384
    Thank Post
    44
    Thanked 39 Times in 37 Posts
    Rep Power
    22
    Quote Originally Posted by link470 View Post
    Alright guys, I found a solution. It's not software. I took apart the keyboard
    Er, bit extreme innit?

    Could try this instead of hacking your keyboard:

    Copy and paste following into a txt document, save with .reg extension

    <copythis>
    Windows Registry Editor Version 5.00

    [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Keyboard Layout]
    "Scancode Map"=hex:00,00,00,00,00,00,00,00,07,00,00,00,00,00 ,5B,E0,00,00,5C,E0,00,00,3E,00,00,00,38,00,00,00,3 8,E0,00,00,1D,E0,00,00,00,00
    </copythis>

    (Make sure you disable the requirement for Ctrl+Alt+Del at logon otherwise you're going to have an interesting time after you reboot!)

    Apply and reboot.

    Should disable F4, both Windows Keys, both Alt keys, and right Ctrl.

    Can still access start menu with Left Ctrl+Esc, can still copy and paste.

    Delete it and reboot to reverse it.

    PM with any probs.

SHARE:
+ Post New Thread

Similar Threads

  1. alt
    By russdev in forum General Chat
    Replies: 2
    Last Post: 19th December 2010, 04:30 PM
  2. advice needed re anytime anywhere access system
    By projector1 in forum Virtual Learning Platforms
    Replies: 11
    Last Post: 27th November 2008, 12:36 AM
  3. after CTRL+ALT+DEL
    By kennysarmy in forum Windows
    Replies: 4
    Last Post: 18th September 2008, 03:46 PM
  4. Live From ALT-C 2006
    By russdev in forum General EduGeek News/Announcements
    Replies: 0
    Last Post: 5th September 2006, 08:30 AM
  5. ALT-C 06
    By russdev in forum General EduGeek News/Announcements
    Replies: 0
    Last Post: 24th August 2006, 09:30 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •