Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am booting a Windows 8 PC into Chrome with "--kiosk" added to the path so I have kiosk mode enabled. Now I need to disable every key that would allow the user to exit the kiosk mode. So far I have identified:

  • All function keys F1 to F12
  • Alt-Key (e.g. Alt+Tab)
  • Windows Key

Ctrl+Alt+Delete will be disabled by Group Policy (gpedit.msc and then navigating to User Config > Admin Templates > System > Ctrl+Alt+Del options). Do you see more key combinations that would allow a user to exit other than this?

What script would I need to disable the 3 combinations above and how would I create a prompt for a pin code dialogue in AutoHotkey, like we press Alt+F7 and now we have to enter a 6 digit pin to unlock the keys and Alt+F8 to lock the keys?

share|improve this question
up vote 1 down vote accepted

Some other browsers like FireFox and Opera have many keys already locked.

Here is a script to lock some of the keys down. For the F1..F12, you will have to fill-in the missing keys... You might have to add Ctrl+Esc (^Esc::Return)

!Tab::Return ; Alt-Tab
!F4::Return ; Alt-F4



The easiest way to lock/unlock the keys is with "suspend". You can do that this way.

InputBox, Code, Unlock,Enter the unlock code.,HIDE
If ErrorLevel
If (Code = 1234)
    Suspend, On

    Suspend, Off

P.s. untested code....

You could also add a check every 200 ms or so, to see of your kiosk is indeed "on top" and if not, refocus windows to the kiosk...

share|improve this answer
Thank you so much! – Jack Murphy Jun 17 '13 at 18:31
Will it prevent Win+L combo? Just curious. – Sarge Borsch Nov 19 '13 at 6:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.