Solved

Lock Keyb and Mouse

Posted on 1998-12-11
3
145 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
  • 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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
proper way to parse text with delphi 7 121
Delphi XE10, MySQL Query 4 143
LAN or WAN ? 11 90
Wincontrol not (correctly) drawn 15 38
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
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 …

770 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