public class LLMouseHook extends AbstractHook
Usage:
1) define a class that implements interface LLMouseHookListener
2) to intercept mouse events in the class, implement: public void onLLMouseHook(int nCode, NativeLong wParam, MSLLHOOKSTRUCT info)
3) use MouseHook in the class
org.safs.natives.test.hookTest
Modifier and Type | Field and Description |
---|---|
static int |
WH_MOUSE_LL
the type of hook for a hook procedure that monitors low-level mouse events
|
hhk, hookId, hookname, hookProc, isHooked, listeners, USER32INST, WM_CHAR, WM_KEYDOWN, WM_KEYUP, WM_KILLFOCUS, WM_LBUTTONDBLCLK, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEHOVER, WM_MOUSEMOVE, WM_RBUTTONDOWN, WM_RBUTTONUP, WM_SETFOCUS, WM_SYSKEYDOWN, WM_SYSKEYUP, WM_UNICHAR
Constructor and Description |
---|
LLMouseHook() |
Modifier and Type | Method and Description |
---|---|
boolean |
addListener(CallbackHookListener listener)
add a listener for current Hook, it should be overridden in its derived classes for setting a specific listener.
|
getHook, isHooked, removeListener, run, setHook, stop
public static final int WH_MOUSE_LL
public boolean addListener(CallbackHookListener listener)
AbstractHook
addListener
in class AbstractHook
listener
- -- a CallbackHookListenerCopyright © SAS Institute. All Rights Reserved.