Solved

Lock Keyb and Mouse

Posted on 1998-12-11
3
149 Views
Last Modified: 2010-04-04
hi,
I need a procedure which locks the keyboard and mouse.
the second procedure must give it free then.

Regards
ItsMe
0
Comment
Question by:ItsMe
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 10 total points
ID: 1350528
Write a windows hook which traps WH_MOUSE and WH_KEYBOARD messages and ignores them. You will need to place them in a DLL also with a flag you can set via a function to turn on the ignoring of the messages or not.

Cheers,

Raymond.
0
 

Author Comment

by:ItsMe
ID: 1350529
How do I write such  program ? I know nothing about writing dll's and hooks !
Regards
ItsMe
0
 
LVL 12

Expert Comment

by:rwilson032697
ID: 1350530
If you do a serach on Delphi Super Page (http://sunsite.icm.edu.pl/delphi/) with "hook" as the key you should find some samples.

Also, start reading the Delphi help about DLLs and the helkp for SetWindowsHook in the Win32 help (type SetWindowsHook in an edit window, put the cursor in it and press F1)
Cheers,

Raymond.
0

Featured Post

Industry Leaders: 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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 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