예제 #1
0
 public BaseMouseHook(IActiveApplicationMonitor activeApplicationMonitor, TimeSpan movingStoppedInterval)
 {
     MovingStoppedInterval    = movingStoppedInterval;
     ActiveApplicationMonitor = activeApplicationMonitor;
     CurrentMouseX            = 0;
     CurrentMouseY            = 0;
     PreviousMouseX           = 0;
     PreviousMouseY           = 0;
     LastClickX   = 0;
     LastClickY   = 0;
     MotionStartX = 0;
     MotionStartY = 0;
 }
예제 #2
0
 public WindowsKeyboardHook(IActiveApplicationMonitor activeApplicationMonitor)
     : base(activeApplicationMonitor)
 {
     _hKeyboardHook         = IntPtr.Zero;
     _keyboardHookProcedure = null;
 }
예제 #3
0
 public BaseKeyboardHook(IActiveApplicationMonitor activeApplicationMonitor)
 {
     ActiveApplicationMonitor = activeApplicationMonitor;
     InterceptKeys            = new SynchronizedList <Key>();
 }
예제 #4
0
 public WindowsMouseHook(IActiveApplicationMonitor activeApplicationMonitor, TimeSpan movingStoppedInterval)
     : base(activeApplicationMonitor, movingStoppedInterval)
 {
     _hMouseHook = IntPtr.Zero;
 }
예제 #5
0
 public WindowsMouseHook(IActiveApplicationMonitor activeApplicationMonitor)
     : this(activeApplicationMonitor, DefaultMovingStoppedInterval)
 {
 }