📄 keyhook.htm
字号:
as your project or anywhere the path can find it. </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Quick Start
Steps:</i></font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Place the component
into your current project.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Setup the OnKeyPressed
Event.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Optionally set the Licence Code for non-trial use. </font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Optionally set
and register the custom UserHookMsg to WM_USER + [1 to 65535]</font></li>
<li><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif">Optionally set DisableKeyboard option.</FONT></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Optionally set LowLevelHook option for WH_KEYBOARD_LL Hooking Method.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Optionally set HookInjected to capture keybd_event calls. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Invoke the Function
Start_KeyHook. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Process the
OnKeyPressed Events.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Invoke the Function
Stop_KeyHook when finished.</font></li>
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Methods, Events
& Properties</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Methods:</i></font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Start_KeyHook
</b> <I>Function:Boolean</I> Starts the KeyHook and Loads the DLL.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Stop_KeyHook
</b> <I>Function:Boolean</I> Stops the KeyHook and Unloads the DLL.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>UpdateHook</b> <I>Function:Boolean</I> Updates the Hook with any new property settings. </font></li>
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Events:</i></font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>OnKey</b>
<I>TKeyHookedEvent</I> Hook Notification Event of KeyUp and KeyDown Messages.<br>
<B>TKeyStates</B> State of the current Keys pressed.</font>
<UL>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>KeyDown</B>: <I>Boolean</I> value indicating if Key is being pressed or released.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>ShiftDown</B>: <I>Boolean</I> value indicating if Shift Key is down.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>AltDown</B>: <I>Boolean</I> value indicating if Alt Key is down.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>CtrlDown</B>: <I>Boolean</I> value indicating is Ctrl Key is down.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>ExtendedKey</B>: <I>Boolean</I> value indicatinf if Key is Extended Key ie. NumLock.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>MenuKey</B>: <I>Boolean</I> value indicating if Key was pressed within a Menu.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>KeyRepeated</B>: <I>Boolean</I> value indicating if Key is held down in a repeating state.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>RepeatCount</B>: <I>Integer</I> value containing the number of Keys repeated.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>DeadKey</B>: <I>Boolean</I> value indicating if Key is a 'DeadKey' Character.</font></LI>
<LI><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>DoubleKey</B>: <I>Boolean</I> value indicating if Key is a Unknown 'DeadKey' combination.</font></LI>
<LI><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>InjectedKey:</strong> <em>Boolean</em> value indicating if key Injected by a keybd_event. </font></LI>
</UL>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><B>TKeyNames</B> Ascii Character and VirtualKey Name for Current Key.</font>
<UL>
<LI><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif"><B>KeyChar</B>: <I>Char</I> value of Key converted to ASCII Character.</FONT></LI>
<LI><FONT size="2" face="Verdana, Arial, Helvetica, sans-serif"><B>KeyExtName</B>: <I>array[0..100]</I> contains the Key OEM/Virtual Name.</FONT>
</LI>
</UL>
</ul>
</li>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><i>Properties:</i></font>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Enabled</b>: <I>Boolean</I> Status of the KeyHook.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>HookLibLoaded</b>: <I>Boolean</I> Indication if Hook DLL Loaded successfully.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>LicenceCode</b>: <I>String</I> Licence Code string for removal of trial message.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>WindowHandle:</strong>
<I>HWND</I> Handle used by Component to receive Messages.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>UserHookMsg:</strong>
<I>DWORD</I> Custom WM_USER Message for communication with the DLL.</font></li>
<li><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>DisableKeyboard:</strong> <I>Boolean</I> Disables all Keyboard input from within Windows.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>keyboardLayout:</b>
<I>String</I> Active Keyboard Layout Name.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>keyboardLayoutHandle:</b> <I>HKL Integer </I> Active Keyboard Layout Handle.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>HookInjected:</b> <I>Boolean</I> Set to Ignore Injected keys from LowLevel keybd_event. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>LowLevelHook:</b> <I>Boolean</I> Set to use LowLevel WH_KEYBOARD_LL Hooking method. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Name:</b>
<I>String</I> Name of Component.</font></li>
</ul>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Licence Keys and Component Source Code</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"> DLL Licence Keys (for trial notice removal) or Full Delphi Source code
is available to purchase below. <BR>
Purchasing entitles you to Free support and professional developer advice on using the components<BR>
within your projects. </font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Developer support is provided via E-Mail and DLL component updates are free.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Unrestricted DLL & Licence Key <font color="#990000"><b>$19.00 US Dollars</b></font><br>
Unrestricted DLL & Licence Key <b><font color="#990000">€17.00 Euro<BR>
</font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Purchase Online: <a href="https://secure.shareit.com/shareit/checkout.html?productid=212276&language=English"><b>Secure Order</b></a></font> </b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">DLL Source Code & Licence Key <font color="#990000"><b>$46.00 US Dollars</b></font><br>
DLL Source Code & Licence Key <b><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#990000">€</font></b></font><font color="#990000">39.00 Euro<BR>
</font>Purchase Online:</b> <a href="https://secure.shareit.com/shareit/checkout.html?productid=147319&language=English"><b>Secure Order</b></a></font></p>
<hr noshade size="1">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b><font color="#999999">BITLOGIC Software Developers </font></b><font color="#999999">of Desktop Software and Security Applications, Utilities and Components.</font></font>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -