Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer 1

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

F1::Return
F2::Return
......
F11::Return
F12::Return

LWin::Return
RWin::Return
#::Return

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

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

!F8::
    Suspend, Off
Return

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
add comment

Your Answer

 
discard

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.