®TCPKeyHook
System Wide Keyboard Hook and DLL for Borland Delphi.
Version:
1.3
Developer: BITLOGIC Software
Copyright: BITLOGIC © 2001
E-Mail: vcl@bitlogic.co.uk
Web: www.bitlogic.co.uk
Delphi Versions: 4/5/6
FileSize: 192KB
Purchase: Secure
Order
Download: keyhook.zip
Overview
Hooking into the
Windows API is complicated process and there are several techniques to achieve
this.
Microsoft recommends that the callback procedure for most hooks should reside
within a DLL, this is the
method used in the TCPKeyHook Component. The Component encapsulates the procedures
and functions
within the separate DLL and uses custom messages to send the key information
to/from the application.
The result is system wide access to the keyboard generated data before being
passed back to Windows
for further processing.
Component Features
- Supports Windows
95/98/ME/NT/2000/XP.
- Ultra small
DLL with almost no overhead or impact on system resource.
- Simple component
with one Event passing all Key state and character information.
- Truly Global,
System Wide Keyboard Hook. Hooks all running Applications.
- Event Returns
converted ASCII characters for installed keyboard.
- Event Returns
Extended Key names, Cursors, Function Keys etc..
- Event Returns
the Repeatcount of any Keys pressed.
- Indication if
Key Message was generated by a System Selection Menu.
- Indication if
Key Message was generated by a KeyDown or KeyUp.
- Custom message
can be set for communication with the DLL.
- Install as a
Component or use Unit and Functions directly.
Component Usage
You can use the
TCPKeyHook within your project to monitor the keyboard activity and to obtain
the
state of which Keys are being pressed in real time.
Component Installation
Note:
KeyHook.Dll must be placed within the same directory as your project or system
path.
Simply install
the registration file CPKeyHookReg.pas as a new
component into an existing or new
Package. TCPKeyHook can also be created manually by using the CPKeyHook.pas
within your projects.
Always place the KeyHook.DLL into the same location
as your project or anywhere the path can find it.
Quick Start
Steps:
- Place the component
into your current project.
- Setup the OnKeyPressed
Event.
- Optionally set
the UserHookMsg to WM_USER + [1 to 65535]
- Invoke the Function
Start_KeyHook.
- Process the
OnKeyPressed Events.
- Invoke the Function
Stop_KeyHook when finished.
Methods, Events
& Properties
Methods:
- Start_KeyHook
Function:Boolean Starts the KeyHook.
- Stop_KeyHook
Function:Boolean Stops the KeyHook.
Events:
- OnKey
Hook Notification Event of KeyUp and KeyDown Messages.
TKeyStates = State of the current Keys pressed.
TKeyNames = Ascii Character and VirtualKey Name for current Key pressed.
Properties:
- Enabled:
Status of the KeyHook.
- WindowHandle:
Handle used by Component to receive Messages.
- UserHookMsg:
Custom WM_USER Message for communication with the DLL.
- keyboardLayout:
Currently installed Keyboard Code.
- Name:
Name of Component.
Component Source
& Licensing
DLL Source code
and Licence is available to purchase from the Website.
Licence allows DLL distribution with commercial applications.
Support is provided via E-Mail and includes Free Updates.
DLL Source &
Licence $29.95 US Dollars
DLL Source & Licence £19.95 UK Pounds
Purchase Link:
Secure
Order
BITLOGIC
Software Developers of Windows Monitoring and
Security Applications, Utilities and Components.