com.jniwrapper.win32.hook
Class LowLevelKeyboardHook
java.lang.Object
com.jniwrapper.win32.hook.Hook
com.jniwrapper.win32.hook.LowLevelKeyboardHook
public final class LowLevelKeyboardHook
- extends Hook
Provides implementation of low-level keyboard hook.
Fields inherited from class com.jniwrapper.win32.hook.Hook |
_listeners, CALLWNDPROC, CALLWNDPROCRET, CBT, FOREGROUNDIDLE, GETMESSAGE, JOURNALRECORD, KEYBOARD, KEYBOARD_LL, MOUSE, MOUSE_LL, SHELL, SYSMSGFILTER |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LowLevelKeyboardHook
public LowLevelKeyboardHook()
processEvent
protected long processEvent(long wParam,
long lParam)
isInstalled
public boolean isInstalled()
- Description copied from class:
Hook
- Verifies if the hook is installed.
- Overrides:
isInstalled
in class Hook
- Returns:
- true if the hook is installed.
install
public void install()
- Description copied from class:
Hook
- Installs the hook.
- Overrides:
install
in class Hook
uninstall
public void uninstall()
- Description copied from class:
Hook
- Uninstalls the hook.
- Overrides:
uninstall
in class Hook
addListener
public void addListener(HookEventListener listener)
- Description copied from class:
Hook
- Adds a hook event listener.
- Overrides:
addListener
in class Hook
- Parameters:
listener
- a hook event listener.
removeListener
public void removeListener(HookEventListener listener)
- Description copied from class:
Hook
- Removes a hook event listener.
- Overrides:
removeListener
in class Hook
- Parameters:
listener
- a hook event listener.