Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Re: Disable/enable keyboard and mouse input OS-wide with a key combination



Permlink Replies: 0 Threads: [ Previous | Next ]
Adem Meda

Posts: 495
Registered: 12/28/98
Re: Disable/enable keyboard and mouse input OS-wide with a key combination
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 12, 2017 4:06 PM
Attachment MouseKeybdLock.7z (920.1 KB)
Antonio Estevez wrote:

Delphi Project to lock Keyboard and Mouse using low level hooks.

See the embarcadero.public.delphi.language.delphi.general: thread:
https://forums.embarcadero.com/thread.jspa?threadID=271474&tstart=0

Attached file contains a slightly improved version of the code Antonio has
posted here.

It also includes X86 (32Bit) and X64 (64Bit) executables.

Both versions are 'Release' (i.e. not 'Debug') versions; but X86 (32Bit)
version was compiled with D7 ahile the X64 (64Bit) version is compiled with
Delphi Tokyo 10.2.

Nearly 10 times the size for the latter. Interesting, IMO.

Anyway, the improvement mentioned above is this:

When the computer/OS is locked using this app, one needs to prevent the
computer from going to sleep, otherwise (not being able to use the keyboard) it
would not be possible to wake it up.

This version does that. Sleep is disabled while the computer is 'locke'ed.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02