Andrea wrote:
> Is it possible to disable *all* multimedia / non standard key on a
> keyboard? I want to disable all that button like "mail", "internet",
> "sleep", "power off" and so on....
> I am writing a software in delphi and i want the user can't stop it or
> interact with the operating system, like a kiosk.
> Any help/suggestion will be appreciated!
> Andrea
Yeah.
But it depends on what you mean by non-standard as that is kinda standard
specific and there are quite a few standards to choose from!
For a start, don't load the software that came with the keyboard, just
install it as a standard 101/105. Many of the keys will likely be ignored
by windows without the software loaded (e.g., iTouch for Logitech,
IntelliType for MS)
Your next job is "kill" the scancodes of the keys that you don't want them
to use, and that the OS recognises.
If you check my website, I have a registry file that utilises the scancode
mapper in Win2K/XP. You could create a similar thing to what I have done,
but map the scancodes to something that the OS doesn't use and ignore them
in your application. The windows keys are scancodes 0xe05b, 0xe05c and
0xe05d, if I recall correctly - they'd be a pain for you, I'd imagine.
My site has links to useful sites for you and an "example" of how to remap
the keys:
<a style='text-decoration: underline;' href="http://www.ben.pope.name/logitech.html" target="_blank">http://www.ben.pope.name/logitech.html</a>
The link on my site the Microsoft site, has links to all the scancodes that
Windows understands - there might be a "ignore this" scancode which would be
ideal. 0x00 is usually considered an error, and I'm unsure how Windows
deals with this - it would be my first choice, test it and see what Windows
does.
Unfortunately I can't think of an easier way, but this is one that should
work (unless you're using a USB keyboard or not Win2K/XP)
Ben
--
A7N8X FAQ: <a style='text-decoration: underline;' href="http://www.ben.pope.name/a7n8x_faq.html" target="_blank">www.ben.pope.name/a7n8x_faq.html</a>
Questions by email will likely be ignored, please use the newsgroups.
I'm not just a number. To many, I'm known as a String...<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Disabling multimedia key