Solved

keyboard application

Posted on 2004-08-27
3
144 Views
Last Modified: 2010-04-05
i want to make a program who stay resident in memory of the computer and allow me to activate not all keyboard, only a few tastes
exemple:
i open a word document
in word i type "John goes to the library"
but my program not allow me to use "a" and "o" character
so the text on word will be "Jhn ges t the librry"
Thanks
0
Comment
Question by:tinti13
3 Comments
 
LVL 17

Expert Comment

by:Wim ten Brink
ID: 11910868
Make a system service and install a systemwide keyboard hook. Means you have to create two projects. A system service that keeps running and a DLL that is used for the hook...

However, you will really annoy quite a lot of people with such an application and it is considered a very bad practice in general. Besides, you cannot prevent all keys from being pressed. (Some special keys will always be detected.) Furthermore, a simple copy&paste could make it possible for users to still use certain characters, even if you block the keys.
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 110 total points
ID: 11914482
see this article to see how a system wide keyboard hook is done... that's what you need:

http://www.q3.nu/trucomania/truco.cgi?408&ing
0
 
LVL 3

Expert Comment

by:gandalf_the_white
ID: 11929657
why do you need something like that?
maybe we can find another way to solve your problem
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question