From iLab Cookbook

Toolkits: Windows Hooker API

<< Back to the Windows Hooker page

Using the library

The HookManager Object

You must create a HookManager object, which you then use to access the API, to start and stop hooking and logging, and to attach event handlers to.

Starting/Stopping the Hook plus Logging operations

You can start and stop hooking, and you can turn mouse and/or key logging on and off

hm.LogKeyboard = (boolean)

hm.LogMouse = (boolean)


hm.StopWindowsHook ()

Event Handlers

The object will automatically generate events whenever it detects mouse / key actions. However, you have to attach event handlers if you want to do something with these events.





hm.KeyUp (


Retrieved from
Page last modified on February 09, 2007, at 02:53 PM