Disable certian keyboard keys
Good morning all.
I'm in need of a way to somehow disable two keyboard keys, the ALT and the CTRL key. I'm setting up a customer internet kiosk environment and I do not want customers being able to use certain key combinations. Group Policies can only do so much. :)
Environement
AD
Windows XP SP 1
IE 6.0
Has anyone done this before? I did see some stuff out there, but that would require editing the web page which we do NOT want to do. Any help would be greatly appreciated. Thanks
I'm in need of a way to somehow disable two keyboard keys, the ALT and the CTRL key. I'm setting up a customer internet kiosk environment and I do not want customers being able to use certain key combinations. Group Policies can only do so much. :)
Environement
AD
Windows XP SP 1
IE 6.0
Has anyone done this before? I did see some stuff out there, but that would require editing the web page which we do NOT want to do. Any help would be greatly appreciated. Thanks
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
cdupuis
20 years ago
Posted by:
cdupuis
20 years ago
Posted by:
lldan
20 years ago
Here it is.
I finally found a tool that tells you the registry key(s) that it creates when you change (remap) keys. This freeware tool is called KeyTweak, yes it's free! The cool thing is you don't have to install it on the machine you want to lock down. Use this tool that automatically creates your registry key, then export, import or add into a script. Enjoy!!
URL:
http://webpages.charter.net/krumsick/
Registry key to lock the following keyboard keys. (remap to the F1 key)
Right CTRL
Right Windows
Right ALT
Left CTRL
Left Windows
Left ALT
DO NOT RUN THIS ON A PRODUCTION MACHINE.
'=====================================================
Windows Registry Editor Version 5.00
'locks left right Windows, CTRL, and ALT keys
'Reboot required
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,08,00,00,00,3b,00,1d,00,3b,00,5b,e0,\
3b,00,38,00,3b,00,38,e0,3b,00,5c,e0,3b,00,5d,e0,3b,00,1d,e0,00,00,00,00
'=====================================================
I finally found a tool that tells you the registry key(s) that it creates when you change (remap) keys. This freeware tool is called KeyTweak, yes it's free! The cool thing is you don't have to install it on the machine you want to lock down. Use this tool that automatically creates your registry key, then export, import or add into a script. Enjoy!!
URL:
http://webpages.charter.net/krumsick/
Registry key to lock the following keyboard keys. (remap to the F1 key)
Right CTRL
Right Windows
Right ALT
Left CTRL
Left Windows
Left ALT
DO NOT RUN THIS ON A PRODUCTION MACHINE.
'=====================================================
Windows Registry Editor Version 5.00
'locks left right Windows, CTRL, and ALT keys
'Reboot required
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,08,00,00,00,3b,00,1d,00,3b,00,5b,e0,\
3b,00,38,00,3b,00,38,e0,3b,00,5c,e0,3b,00,5d,e0,3b,00,1d,e0,00,00,00,00
'=====================================================
Posted by:
sean_c_roberts
20 years ago
What you want is ABSOLUTELY possible... but it's not really appropriate for an installer/installation...
I'm assuming you want these keys disabled while your software is running.
I have done this in Delphi using what's called a system keyboard hook.
A keyboard hook intercepts all keyboard-generated messages and can cancel/kill any keys you don't want.
I don't know in what software your kiosk app is written, but here's the Delphi code so you can see which API calls they're making and you can get a general idea about how and what they're doing:
TOUCH ME - I'M UNTOUCHABLE
http://delphi.about.com/library/weekly/aa101000a.htm
and also
An introduction to hook procedures
http://delphi.about.com/library/bluc/text/uc063001a.htm
one more thing... if you need to COMPLETELY disable/enable keyboard and mouse input, you can use code I wrote in WiseScript. BE CAREFUL!!! If you disable input, and then your code/script does not reenable input correctly, you will be unable to send ANY commands to your system and will have to reset/reboot.
Go to www.dragonsoftru.com.
Go to the WiseScript section.
Look by author.
Look for Sean Roberts and then look for a script called: Block Keyboard and Mouse Input
Good luck!
I'm assuming you want these keys disabled while your software is running.
I have done this in Delphi using what's called a system keyboard hook.
A keyboard hook intercepts all keyboard-generated messages and can cancel/kill any keys you don't want.
I don't know in what software your kiosk app is written, but here's the Delphi code so you can see which API calls they're making and you can get a general idea about how and what they're doing:
TOUCH ME - I'M UNTOUCHABLE
http://delphi.about.com/library/weekly/aa101000a.htm
and also
An introduction to hook procedures
http://delphi.about.com/library/bluc/text/uc063001a.htm
one more thing... if you need to COMPLETELY disable/enable keyboard and mouse input, you can use code I wrote in WiseScript. BE CAREFUL!!! If you disable input, and then your code/script does not reenable input correctly, you will be unable to send ANY commands to your system and will have to reset/reboot.
Go to www.dragonsoftru.com.
Go to the WiseScript section.
Look by author.
Look for Sean Roberts and then look for a script called: Block Keyboard and Mouse Input
Good luck!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.