Solved

Lock Keyb and Mouse

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

706 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now