📄 keyhook.htm
字号:
<html>
<head>
<title>Delphi System Wide Keyboard Hook</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="DESCRIPTION" content="Delphi Keyboard Hook">
<meta name="KEYWORDS" content="delphi,keyboard,hook,global,system,keys,scan,codes,record,windows,source,dll,keyboard hook">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<b><font face="Verdana, Arial, Helvetica, sans-serif" size="4">TCPKeyHook</font></b><font face="Verdana, Arial, Helvetica, sans-serif"><b><font face="Verdana, Arial, Helvetica, sans-serif" size="4">®</font></b>
<font size="2">System Wide Keyboard Hook and DLL for Borland Delphi.</font></font>
<hr noshade size="1">
<font face="Verdana, Arial, Helvetica, sans-serif"><font size="2"><b>Version</b>:
1.9<br>
<font face="Verdana, Arial, Helvetica, sans-serif"><b>Release Date </b>: 02/03/2006<br>
</font></font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b> Delphi Versions: </b>4/5/6/7/8/2005/2006<b><br>
</b></font><font size="2"><b>Developer</b>: BITLOGIC Software Solutions <br>
<b>Copyright</b>: BITLOGIC © 2001<br>
<b>E-Mail</b>: <a href="mailto:development@bitlogic.co.uk">development@bitlogic.co.uk</a><br>
<b>Web</b>: <a href="http://www.bitlogic.co.uk">www.bitlogic.co.uk</a></font></font><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><br>
<b><br>
</b>
<b>
Download: </b><a href="http://www.bitlogic.co.uk/downloads/keyhook.zip">keyhook.zip</a></font><br>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><SPAN class="text_main"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Purchase Online:</b> <a href="https://secure.shareit.com/shareit/checkout.html?productid=212276&language=English">DLL Licence Keys only</a><BR>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Purchase Online:</b> <a href="https://secure.shareit.com/shareit/checkout.html?productid=147319&language=English">DLL Source Code & Licence Keys</a></font></font></font></font></SPAN><SPAN class="text_main"><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><BR>
<BR>
This component is also included in the <A href="http://www.bitlogic.co.uk/products_borland_tcphookpack.htm">Delphi Hook Pack Collection</A>.</font></SPAN><br>
</font>
<hr noshade size="1">
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Overview</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Hooking into the
Windows API is a complicated process and there are several techniques to achieve
this.<br>
Microsoft recommends that the callback procedure for most hooks should reside
within a DLL, this is the<br>
method used by the TCPKeyHook Component. The Component encapsulates the procedures
and functions<br>
within the separate DLL and uses Memory Mapped File (MMF) to send a custom message with the keyboard<BR>
information
to the calling application or process.
The result is a system wide hook into all global keyboard<BR>
events generated by the user keyboard input. </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Component Features</b></font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Supports Windows
95*/98*/ME*/NT/2000/2003/XP.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Ultra small
DLL with almost no overhead or impact on system resources.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Simple component
with one Event passing all Key state and character information.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> Global and
System Wide Keyboard Hook on all running Threads/Processes.</font></li>
<li><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">Disable the Keyboard and Block Keys from being processed by other programs. </FONT></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Event Returns
converted ASCII characters for installed keyboard Layout.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Event Returns
Extended Key names, Cursors, Function Keys etc..</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Event Returns
the Repeatcount of any Keys pressed.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Indication if
Key Message was generated by a System Selection Menu.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Indication if
Key Message was generated by a KeyDown or KeyUp.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Indication if Key is a 'DeadKey' for International Keyboard Layouts. </font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Custom message
can be set for communication with the DLL.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Install as a
Component or use Unit Classes and DLL Functions directly.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Supports both WH_KEYBOARD and WH_KEYBOARD_LL Hooking methods.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Captures events from Win32 API calls to keybd_event.</font></li>
</ul>
<p><font size="2" face="Verdana, Arial, Helvetica, sans-serif">* Windows 95/98/ME do not support the LowLevel Hooking method. </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Component Usage</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can use the
TCPKeyHook within your project to monitor keyboard activity, Disable the Keyboard or to<BR>
obtain
the
state of which Keys are being pressed in real time.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Component Installation</b></font></p>
<p><font color="#990000" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Note:
KeyHook.Dll must be placed within the directory of any project application that uses the DLL or<BR>
within
the
system
path.</strong></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">To use as a component, simply install
the registration file <font color="#0000CC">CPKeyHookReg.pas</font> as a new
component into an existing<BR>
or new
Package. TCPKeyHook can also be created dynamicly by using the CPKeyHook.pas
within your projects.<br>
Always place the <font color="#000099">KeyHook.DLL </font>into the same location
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -