Method | Description | |
---|---|---|
Start ( ) : void |
Installs both mouse and keyboard hooks and starts rasing events
|
|
Start ( bool installMouseHook, bool installKeyboardHook ) : void |
Installs both or one of mouse and/or keyboard hooks and starts rasing events
|
|
Stop ( ) : void |
Stops monitoring both mouse and keyboard events and rasing events.
|
|
Stop ( bool uninstallMouseHook, bool uninstallKeyboardHook, bool throwExceptions ) : void |
Stops monitoring both or one of mouse and/or keyboard events and rasing events.
|
|
UserActivityHook ( ) : System |
Creates an instance of UserActivityHook object and sets mouse and keyboard hooks.
|
|
UserActivityHook ( bool installMouseHook, bool installKeyboardHook ) : System |
Creates an instance of UserActivityHook object and installs both or one of mouse and/or keyboard hooks and starts rasing events To create an instance without installing hooks call new UserActivityHook(false, false) |
Method | Description | |
---|---|---|
CallNextHookEx ( int idHook, int nCode, int wParam, |
||
GetKeyState ( int vKey ) : short | ||
GetKeyboardState ( byte pbKeyState ) : int | ||
KeyboardHookProc ( int nCode, |
A callback function which will be called every time a keyboard activity detected.
|
|
MouseHookProc ( int nCode, int wParam, |
A callback function which will be called every time a mouse activity detected.
|
|
SetWindowsHookEx ( int idHook, HookProc lpfn, |
||
ToAscii ( int uVirtKey, int uScanCode, byte lpbKeyState, byte lpwTransKey, int fuState ) : int | ||
UnhookWindowsHookEx ( int idHook ) : int |
public Start ( bool installMouseHook, bool installKeyboardHook ) : void | ||
installMouseHook | bool | true if mouse events must be monitored |
installKeyboardHook | bool | true if keyboard events must be monitored |
return | void |
public Stop ( bool uninstallMouseHook, bool uninstallKeyboardHook, bool throwExceptions ) : void | ||
uninstallMouseHook | bool | true if mouse hook must be uninstalled |
uninstallKeyboardHook | bool | true if keyboard hook must be uninstalled |
throwExceptions | bool | true if exceptions which occured during uninstalling must be thrown |
return | void |
public UserActivityHook ( bool installMouseHook, bool installKeyboardHook ) : System | ||
installMouseHook | bool | true if mouse events must be monitored |
installKeyboardHook | bool | true if keyboard events must be monitored |
return | System |