Non-visual components providing systemwide key presses and mouse clicks logging
Description
Two non-visual components for trapping key press/release and mouse clicks and position change anywhere they happen. It means not only in your application but systemwide.
It is compatible with Delphi 2007, Delphi 2010 and Delphi XE7-D12 (32bit and 64bit where applicable). Supported operating systems are Microsoft Windows XP-11 and Windows Server 2003-2025.
When user presses/releases any key or mouse button or mouse position is changed appropriate event is triggered and key scancode, key name and button identifier is provided. Cursor coordinates are provided for mouse events as well.
Source device of event is distinguished by its handle and reported in result set.
Also information about target window is returned in event argument:
- Window handle
- Window classname
- Window caption text
- Window process ID
- Window process name
- Device handle
Components are implemented not as slow and buggy hooks but with Raw Input API. Developer doesn’t have to create DLL to use them. They works seamlessly from any application with no limitations.
Contained component
- TKeyLogger – component capturing keyboard presses
- TMouseLogger – component capturing mouse movement a buttons
Demos
- Main Demo – complex demo covering all componentsr
Gallery

