C# 클래스 MouseKeyboardActivityMonitor.MouseHookListener

This class monitors all mouse activities and provides appropriate events.
상속: BaseHookListener
파일 보기 프로젝트 열기: katopz/oskz-vcsharp 1 사용 예제들

공개 메소드들

메소드 설명
MouseHookListener ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : System

Initializes a new instance of MouseHookListener.

Hooks are not active after installation. You need to use either BaseHookListener.Enabled property or call BaseHookListener.Start method.

보호된 메소드들

메소드 설명
Dispose ( bool isDisposing ) : void

Method to be used from Dispose and finalizer. Override this method to release subclass sepcific references.

GetHookId ( ) : int

Returns the correct hook id to be used for HookNativeMethods.SetWindowsHookEx call.

ProcessCallback ( int wParam, IntPtr lParam ) : bool

This method processes the data from the hook and initiates event firing.

비공개 메소드들

메소드 설명
HasMoved ( Point actualPoint ) : bool
HasSupressButtonUpFlag ( MouseButtons button ) : bool
InvokeMouseEventHandler ( MouseEventHandler handler, MouseEventArgs e ) : void
InvokeMouseEventHandlerExt ( EventHandler handler, MouseKeyboardActivityMonitor.MouseEventExtArgs e ) : void
IsDoubleClick ( MouseButtons button, int timestamp ) : bool
ProcessMouseClick ( MouseKeyboardActivityMonitor.MouseEventExtArgs &e ) : void
ProcessMouseDown ( MouseKeyboardActivityMonitor.MouseEventExtArgs &e ) : void
ProcessMouseMove ( MouseKeyboardActivityMonitor.MouseEventExtArgs &e ) : void
ProcessMouseUp ( MouseKeyboardActivityMonitor.MouseEventExtArgs &e ) : void
ProcessPossibleDoubleClick ( MouseKeyboardActivityMonitor.MouseEventExtArgs &e ) : void
RemoveSupressButtonUpFlag ( MouseButtons button ) : void
SetSupressButtonUpFlag ( MouseButtons button ) : void

메소드 상세

Dispose() 보호된 메소드

Method to be used from Dispose and finalizer. Override this method to release subclass sepcific references.
protected Dispose ( bool isDisposing ) : void
isDisposing bool
리턴 void

GetHookId() 보호된 메소드

Returns the correct hook id to be used for HookNativeMethods.SetWindowsHookEx call.
protected GetHookId ( ) : int
리턴 int

MouseHookListener() 공개 메소드

Initializes a new instance of MouseHookListener.
Hooks are not active after installation. You need to use either BaseHookListener.Enabled property or call BaseHookListener.Start method.
public MouseHookListener ( MouseKeyboardActivityMonitor.WinApi.Hooker hooker ) : System
hooker MouseKeyboardActivityMonitor.WinApi.Hooker Depending on this parameter the listener hooks either application or global mouse events.
리턴 System

ProcessCallback() 보호된 메소드

This method processes the data from the hook and initiates event firing.
protected ProcessCallback ( int wParam, IntPtr lParam ) : bool
wParam int The first Windows Messages parameter.
lParam System.IntPtr The second Windows Messages parameter.
리턴 bool