Exemplo n.º 1
0
 private void UnHookMouse()
 {
     if (_mouseListener != null)
     {
         _mouseListener.Dispose();
         _mouseListener = null;
     }
 }
Exemplo n.º 2
0
 private void HookMouse()
 {
     if (_settings.Get <bool>(_names.EnableMouseHook) && _mouseListener == null)
     {
         _mouseListener = new MouseListener();
         _mouseListener.OnLeftMouseDown  += _mouseListener_OnLeftMouseDown;
         _mouseListener.OnRightMouseDown += MouseListener_OnRightMouseDown;
         _mouseListener.Hook();
         _logger.Log(">Mouse hooked!", LogLevel.Debug);
     }
 }